summaryrefslogtreecommitdiff
path: root/kc/core/cpu/cpu.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-13 12:26:58 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-13 12:26:58 +0000
commitc1d179d50751d0ce08dc2b009fc5e334d20db11a (patch)
treec24a48ef55fbfe898b58f61a880ae4e3d96e8440 /kc/core/cpu/cpu.c
parent23f4c7eaa0bae30bebbac68950e96d17c6d77c36 (diff)
exception changes
Diffstat (limited to 'kc/core/cpu/cpu.c')
-rw-r--r--kc/core/cpu/cpu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kc/core/cpu/cpu.c b/kc/core/cpu/cpu.c
index 6e8e8b6..28b69ff 100644
--- a/kc/core/cpu/cpu.c
+++ b/kc/core/cpu/cpu.c
@@ -257,8 +257,12 @@ void cpu_init(void)
void exceptions_init(void)
{
- isr_install(GENERAL_PROTECTION_VECTOR, &general_protection_isr, 0, 0);
- isr_install(PAGE_FAULT_VECTOR, &page_fault_isr, 0, 0);
+ isr_install(
+ GENERAL_PROTECTION_EXCEPTION,
+ &general_protection_isr,
+ 0,
+ 0);
+ isr_install(PAGE_FAULT_EXCEPTION, &page_fault_isr, 0, 0);
}
void isr_install(int vec, void (*isr)(void), int trap, unsigned ist)