[kernel] Move interrupt error handling to kassert

Remove all the console-printing code in the interrupt handling routine
and have it pass off to the panic handler.
This commit is contained in:
Justin C. Miller
2021-08-01 16:13:26 -07:00
parent 76beee62c3
commit 2b16b69afa
3 changed files with 56 additions and 118 deletions

View File

@@ -16,9 +16,6 @@ void panic_handler(
panic::frame const *fp = nullptr;
asm ( "mov %%rbp, %0" : "=r" (fp) );
// Skip the panic handler itself
if (fp) fp = fp->prev;
print_header(com1, message);
print_callstack(com1, syms, fp);
print_cpu_state(com1, *regs);