mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
interrupts: disable and enable abstraction
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#ifndef _ARCH_INTERRUPT_H_INCLUDE
|
||||
#define _ARCH_INTERRUPT_H_INCLUDE
|
||||
|
||||
static inline void arch_interrupt_disable(){
|
||||
asm("cli");
|
||||
}
|
||||
|
||||
static inline void arch_interrupt_enable(){
|
||||
asm("sti");
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user