diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-28 20:56:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-28 22:29:28 +0200 |
commit | 732dc72c58d4b2a135e5b302dff08571f170465e (patch) | |
tree | abc0f7ba5034ba2e18bcbd74db8d30b4830ce6ad /Kernel/Arch | |
parent | d4c0d28035c1424b3c7680a7aadc907f3cdca59c (diff) | |
download | serenity-732dc72c58d4b2a135e5b302dff08571f170465e.zip |
Kernel: Fix the limit for the IDT table
Diffstat (limited to 'Kernel/Arch')
-rw-r--r-- | Kernel/Arch/x86/common/Interrupts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/common/Interrupts.cpp b/Kernel/Arch/x86/common/Interrupts.cpp index fc85ac4345..445e923be0 100644 --- a/Kernel/Arch/x86/common/Interrupts.cpp +++ b/Kernel/Arch/x86/common/Interrupts.cpp @@ -605,7 +605,7 @@ UNMAP_AFTER_INIT void flush_idt() UNMAP_AFTER_INIT void idt_init() { s_idtr.address = s_idt; - s_idtr.limit = 256 * 8 - 1; + s_idtr.limit = 256 * sizeof(IDTEntry) - 1; register_interrupt_handler(0x00, divide_error_asm_entry); register_user_callable_interrupt_handler(0x01, debug_asm_entry); |