diff options
author | Dennis Kobert <dennis@kobert.dev> | 2019-11-08 07:28:08 +0100 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2019-11-08 07:28:08 +0100 |
commit | d261a0f15a350d81430d3937d3c02118c395d27c (patch) | |
tree | 78cba47d4e7a31fdde64dc7b483ed5fd7d183aca /kernel/src/interrupts/table.rs | |
parent | a9d39fdb56526c4146d92e6af68cc175ec4da7c2 (diff) |
Implement guarding page
Diffstat (limited to 'kernel/src/interrupts/table.rs')
-rw-r--r-- | kernel/src/interrupts/table.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/src/interrupts/table.rs b/kernel/src/interrupts/table.rs index 47d6ead..6472014 100644 --- a/kernel/src/interrupts/table.rs +++ b/kernel/src/interrupts/table.rs @@ -7,6 +7,10 @@ lazy_static! { let mut idt = InterruptDescriptorTable::new(); idt.breakpoint .set_handler_fn(super::exceptions::breakpoint_handler); + idt.page_fault + .set_handler_fn(super::exceptions::page_fault_handler); + idt.segment_not_present + .set_handler_fn(super::exceptions::segment_not_present_handler); idt }; } |