aboutsummaryrefslogtreecommitdiffstats
path: root/idt.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-09-28 10:26:46 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-09-28 10:26:46 -0400
commitba5683581d00d9f02d470f4cde881293cc838a91 (patch)
tree772863e39677ae02b84a06f233d0a713d44d2f22 /idt.cpp
parent376d7ec265085ae3a77664356a2ad35921cfccaf (diff)
basic keyboard support
Diffstat (limited to 'idt.cpp')
-rw-r--r--idt.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/idt.cpp b/idt.cpp
index cacac97..0dc0f73 100644
--- a/idt.cpp
+++ b/idt.cpp
@@ -40,8 +40,11 @@ void interruptGeneralHandler(Registers regs)
}
if (inum < callbacks.size()) {
- if (auto cb = callbacks[inum]; cb)
- cb(regs);
+ if (auto cb = callbacks[inum]; cb) {
+ asm volatile("cli");
+ cb(regs);
+ asm volatile("sti");
+ }
}
}