aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/cpu/interrupts.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-21 08:48:26 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-21 08:48:26 +0100
commiteb8074e9003034ef2186b62fc66b1073455be5de (patch)
tree8f02be17c3fb13d6f17eb7aa3188cab32bddb64b /arch/x86_64/src/cpu/interrupts.cpp
parentdd2dc3ef9a5318a0f7c7c35be59759ab08adc3dc (diff)
downloadteachos-eb8074e9003034ef2186b62fc66b1073455be5de.tar.xz
teachos-eb8074e9003034ef2186b62fc66b1073455be5de.zip
x86_64/cpu: fixup 8259 interrupts
Diffstat (limited to 'arch/x86_64/src/cpu/interrupts.cpp')
-rw-r--r--arch/x86_64/src/cpu/interrupts.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86_64/src/cpu/interrupts.cpp b/arch/x86_64/src/cpu/interrupts.cpp
index 08469c0..19cf6f4 100644
--- a/arch/x86_64/src/cpu/interrupts.cpp
+++ b/arch/x86_64/src/cpu/interrupts.cpp
@@ -91,4 +91,14 @@ namespace arch::cpu
return idtr;
}
+ auto enable_interrupts() -> void
+ {
+ asm volatile("sti");
+ }
+
+ auto disable_interrupts() -> void
+ {
+ asm volatile("cli");
+ }
+
} // namespace arch::cpu \ No newline at end of file