diff options
Diffstat (limited to 'include/asm-alpha/system.h')
-rw-r--r-- | include/asm-alpha/system.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-alpha/system.h b/include/asm-alpha/system.h index b37be73b2..2be0ced69 100644 --- a/include/asm-alpha/system.h +++ b/include/asm-alpha/system.h @@ -147,6 +147,13 @@ enum implver_enum { #endif #endif +enum amask_enum { + AMASK_BWX = (1UL << 0), + AMASK_FIX = (1UL << 1), + AMASK_MAX = (1UL << 8), + AMASK_PRECISE_TRAP = (1UL << 9), +}; + #define amask(mask) \ ({ unsigned long __amask, __input = (mask); \ __asm__ ("amask %1,%0" : "=r"(__amask) : "rI"(__input)); \ @@ -220,6 +227,11 @@ wrperfmon(unsigned long perf_fun, unsigned long arg) #define __save_and_cli(flags) ((flags) = swpipl(7)) #define __restore_flags(flags) setipl(flags) +#define local_irq_save(flags) __save_and_cli(flags) +#define local_irq_restore(flags) __restore_flags(flags) +#define local_irq_disable() __cli() +#define local_irq_enable() __sti() + #ifdef __SMP__ extern int global_irq_holder; |