diff options
author | dzwdz | 2021-07-19 17:23:20 +0200 |
---|---|---|
committer | dzwdz | 2021-07-19 17:23:20 +0200 |
commit | c9ad4bfbf875b0d23e1f7bf7d5aff2d149ba4fd7 (patch) | |
tree | b54fd00dabe804cd69db73037620dbdda2900cca /src/kernel/arch/i386/interrupts/isr.c | |
parent | a31794504d911d584265ac0427dfbba9a4d9ef72 (diff) |
add a page fault handler
Diffstat (limited to 'src/kernel/arch/i386/interrupts/isr.c')
-rw-r--r-- | src/kernel/arch/i386/interrupts/isr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/arch/i386/interrupts/isr.c b/src/kernel/arch/i386/interrupts/isr.c index 35796fa..9da06fb 100644 --- a/src/kernel/arch/i386/interrupts/isr.c +++ b/src/kernel/arch/i386/interrupts/isr.c @@ -21,6 +21,12 @@ void isr_general_protection_fault(UNUSED struct interrupt_frame *frame) { } __attribute__((interrupt)) +void isr_page_fault(UNUSED struct interrupt_frame *frame) { + log_const("#PF"); + panic(); +} + +__attribute__((interrupt)) void isr_test_interrupt(UNUSED struct interrupt_frame *frame) { isr_test_interrupt_called = true; } |