summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/system.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/asm-mips/system.h
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/asm-mips/system.h')
-rw-r--r--include/asm-mips/system.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h
index 4bb2bf1c7..2d4d27871 100644
--- a/include/asm-mips/system.h
+++ b/include/asm-mips/system.h
@@ -67,6 +67,23 @@ __asm__ __volatile__( \
: /* no inputs */ \
: "memory")
+#define save_and_cli(x) \
+__asm__ __volatile__( \
+ ".set\tnoreorder\n\t" \
+ ".set\tnoat\n\t" \
+ "mfc0\t%0,$12\n\t" \
+ "ori\t$1,%0,1\n\t" \
+ "xori\t$1,1\n\t" \
+ "mtc0\t$1,$12\n\t" \
+ "nop\n\t" \
+ "nop\n\t" \
+ "nop\n\t" \
+ ".set\tat\n\t" \
+ ".set\treorder" \
+ : "=r" (x) \
+ : /* no inputs */ \
+ : "$1", "memory")
+
extern void __inline__
restore_flags(int flags)
{
@@ -235,9 +252,4 @@ extern unsigned long exception_handlers[32];
#define set_except_vector(n,addr) \
exception_handlers[n] = (unsigned long) (addr)
-/*
- * Reset the machine.
- */
-extern void (*hard_reset_now)(void);
-
#endif /* __ASM_MIPS_SYSTEM_H */