interrupts: disable and enable abstraction

This commit is contained in:
Matheus
2022-09-02 12:06:41 -03:00
parent e99142e3ea
commit 33e6f26415
+12
View File
@@ -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