diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 10:26:46 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 10:26:46 -0400 |
commit | ba5683581d00d9f02d470f4cde881293cc838a91 (patch) | |
tree | 772863e39677ae02b84a06f233d0a713d44d2f22 /idt.cpp | |
parent | 376d7ec265085ae3a77664356a2ad35921cfccaf (diff) |
basic keyboard support
Diffstat (limited to 'idt.cpp')
-rw-r--r-- | idt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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"); + } } } |