patch-2.4.21 linux-2.4.21/include/asm-mips/system.h
Next file: linux-2.4.21/include/asm-mips64/ide.h
Previous file: linux-2.4.21/include/asm-mips/processor.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-mips/system.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-mips/system.h linux-2.4.21/include/asm-mips/system.h
@@ -114,6 +114,8 @@
: /* no inputs */ \
: "memory")
+#define __save_and_sti(x) do { __save_flags(x); __sti(); } while(0);
+
__asm__(".macro\t__restore_flags flags\n\t"
".set\tnoreorder\n\t"
".set\tnoat\n\t"
@@ -152,6 +154,7 @@
# define save_flags(x) do { x = __global_save_flags(); } while (0)
# define restore_flags(x) __global_restore_flags(x)
# define save_and_cli(x) do { save_flags(x); cli(); } while(0)
+# define save_and_sti(x) do { save_flags(x); sti(); } while(0)
#else /* Single processor */
@@ -160,11 +163,13 @@
# define save_flags(x) __save_flags(x)
# define save_and_cli(x) __save_and_cli(x)
# define restore_flags(x) __restore_flags(x)
+# define save_and_sti(x) __save_and_sti(x)
#endif /* SMP */
/* For spinlocks etc */
#define local_irq_save(x) __save_and_cli(x)
+#define local_irq_set(x) __save_and_sti(x)
#define local_irq_restore(x) __restore_flags(x)
#define local_irq_disable() __cli()
#define local_irq_enable() __sti()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)