mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
x86_64 interrupts: push interrupt numbers and also add an isr for #NM
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user