From 2f82430b488878d321276e6efb10c61042ca2930 Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 1 Nov 2022 21:18:17 +0200 Subject: Enable interrupts after enabling the PIC --- i686/sys/control.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'i686/sys/control.h') 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"); +} -- cgit v1.2.1