mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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