summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/system.h
diff options
context:
space:
mode:
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 */