forked from Bananymous/banan-os
Improve IDT Kernel panic
This commit is contained in:
parent
4ebd0e5c36
commit
c292ef5471
|
@ -21,7 +21,7 @@ static GateDescriptor* s_idt;
|
||||||
asm volatile("movl %%cr2, %%eax":"=a"(cr2)); \
|
asm volatile("movl %%cr2, %%eax":"=a"(cr2)); \
|
||||||
asm volatile("movl %%cr3, %%eax":"=a"(cr3)); \
|
asm volatile("movl %%cr3, %%eax":"=a"(cr3)); \
|
||||||
asm volatile("movl %%cr4, %%eax":"=a"(cr4)); \
|
asm volatile("movl %%cr4, %%eax":"=a"(cr4)); \
|
||||||
Kernel::panic(msg ", CR0={} CR2={} CR3={} CR4={}\n", cr0, cr2, cr3, cr4); \
|
Kernel::panic(msg ", CR0={} CR2={} CR3={} CR4={}", cr0, cr2, cr3, cr4); \
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERRUPT_HANDLER(0x00, "Divide error")
|
INTERRUPT_HANDLER(0x00, "Divide error")
|
||||||
|
|
Loading…
Reference in New Issue