summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/interrupts/isr.c
diff options
context:
space:
mode:
authordzwdz2021-07-19 17:23:20 +0200
committerdzwdz2021-07-19 17:23:20 +0200
commitc9ad4bfbf875b0d23e1f7bf7d5aff2d149ba4fd7 (patch)
treeb54fd00dabe804cd69db73037620dbdda2900cca /src/kernel/arch/i386/interrupts/isr.c
parenta31794504d911d584265ac0427dfbba9a4d9ef72 (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.c6
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;
}