diff options
author | dzwdz | 2021-07-10 16:17:43 +0200 |
---|---|---|
committer | dzwdz | 2021-07-10 16:17:43 +0200 |
commit | 1faac72e2514c335e2d5721dce8c9fd1da722062 (patch) | |
tree | 37881c60756e6d42daf7999cb4cc110c07f39e36 /kernel/isr.c | |
parent | 1cc98d32bf344691c73fcc7b64e2ed2755f17ede (diff) |
add a basic #GP handler
Diffstat (limited to 'kernel/isr.c')
-rw-r--r-- | kernel/isr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/isr.c b/kernel/isr.c index e6a9871..b715de0 100644 --- a/kernel/isr.c +++ b/kernel/isr.c @@ -13,6 +13,12 @@ void isr_double_fault(struct interrupt_frame *frame) { } __attribute__((interrupt)) +void isr_general_protection_fault(struct interrupt_frame *frame) { + tty_const("#GP"); + panic(); +} + +__attribute__((interrupt)) void isr_test_interrupt(struct interrupt_frame *frame) { isr_test_interrupt_called = true; } |