diff options
author | Anton Kling <anton@kling.gg> | 2024-04-26 15:42:01 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-26 15:44:26 +0200 |
commit | 15bc439577c49e97c24a074fe6d9e9464f917054 (patch) | |
tree | 8a60437726c70f5e046da785db3ea904b282cd66 /kernel/cpu/isr.s | |
parent | ea653dc177eca18291f3081348d6104ac817f763 (diff) |
Kernel: Handle userspace memory errors instead of crashing.
The kernel should kill the process if it has memory issues.
Diffstat (limited to 'kernel/cpu/isr.s')
-rw-r--r-- | kernel/cpu/isr.s | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/cpu/isr.s b/kernel/cpu/isr.s index 8032485..819b22b 100644 --- a/kernel/cpu/isr.s +++ b/kernel/cpu/isr.s @@ -11,6 +11,13 @@ push \num jmp isr_common_stub .endm +.macro ISR_ERRCODE num + .global isr\num + isr\num: + cli + push \num + jmp isr_common_stub +.endm ISR_NOERRCODE 0 ISR_NOERRCODE 1 @@ -26,7 +33,7 @@ ISR_NOERRCODE 10 ISR_NOERRCODE 11 ISR_NOERRCODE 12 ISR_NOERRCODE 13 -ISR_NOERRCODE 14 +ISR_ERRCODE 14 ISR_NOERRCODE 15 ISR_NOERRCODE 16 ISR_NOERRCODE 17 |