diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-11-01 21:18:17 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-11-01 21:35:57 +0200 |
commit | 2f82430b488878d321276e6efb10c61042ca2930 (patch) | |
tree | 34455e48a90eb61f1d814ff2c18cb962c02f89a6 /i686/sys | |
parent | Add uppercase scancodes (diff) | |
download | kernel-2f82430b488878d321276e6efb10c61042ca2930.tar.xz |
Enable interrupts after enabling the PIC
Diffstat (limited to 'i686/sys')
-rw-r--r-- | i686/sys/control.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/i686/sys/control.h b/i686/sys/control.h index a40a67f..0231236 100644 --- a/i686/sys/control.h +++ b/i686/sys/control.h @@ -7,3 +7,15 @@ abort() h: hlt jmp h)"); } + +static void +enable_interrupts() +{ + asm volatile("sti"); +} + +static void +disable_interrupts() +{ + asm volatile("cli"); +} |