diff options
Diffstat (limited to 'arch/x86/include/asm/irq.h')
-rw-r--r-- | arch/x86/include/asm/irq.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h new file mode 100644 index 0000000..23f47fd --- /dev/null +++ b/arch/x86/include/asm/irq.h | |||
@@ -0,0 +1,15 @@ | |||
1 | #ifndef ASM_IRQ_H | ||
2 | #define ASM_IRQ_H | ||
3 | |||
4 | /* please, use these only if you _really_ know what you're doing | ||
5 | * ... and remember iopl(3) first!! (include sys/io.h) | ||
6 | */ | ||
7 | static inline void cli(void) { | ||
8 | asm volatile("cli": : :"memory"); | ||
9 | } | ||
10 | |||
11 | static inline void sti(void) { | ||
12 | asm volatile("sti": : :"memory"); | ||
13 | } | ||
14 | |||
15 | #endif | ||