x86_64 interrupts: push interrupt numbers and also add an isr for #NM

This commit is contained in:
Matheus
2022-11-20 20:12:06 -03:00
parent 60569cf68b
commit 75491f602f
4 changed files with 23 additions and 14 deletions
+4 -2
View File
@@ -15,11 +15,13 @@ void isr_simd(arch_regs *reg){
_panic("SIMD exception", reg);
}
void isr_general(arch_regs *reg){
void isr_general(arch_regs *reg, int n){
printf("interrupt %d", n);
_panic("Unhandled interrupt", reg);
}
void isr_except(arch_regs *reg){
void isr_except(arch_regs *reg, int n){
printf("exception %d", n);
_panic("CPU Exception", reg);
}