summaryrefslogtreecommitdiff
path: root/kernel/src/interrupts/idt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/interrupts/idt.rs')
-rw-r--r--kernel/src/interrupts/idt.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/src/interrupts/idt.rs b/kernel/src/interrupts/idt.rs
index 9541f22..e85ef5a 100644
--- a/kernel/src/interrupts/idt.rs
+++ b/kernel/src/interrupts/idt.rs
@@ -8,6 +8,8 @@ lazy_static! {
.set_handler_fn(super::exceptions::breakpoint_handler);
idt.segment_not_present
.set_handler_fn(super::exceptions::segment_not_present_handler);
+ idt.general_protection_fault
+ .set_handler_fn(super::exceptions::general_protection_fault_handler);
unsafe {
idt.double_fault
.set_handler_fn(super::exceptions::double_fault_handler)