Skip to content

Commit

Permalink
log: Make ktrace(NULL) work
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Feb 19, 2025
1 parent 09107fa commit 38716b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/arch/x86_64/system/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Context* interrupt_ud_handler(usize isr, Context* regs, void* data)
Context* interrupt_debug_handler(usize isr, Context* regs, void* data)
{
// We use this exception just to print the current registers, so no abort.
ktrace(regs);
arch_dump_registers(regs);

return regs;
}
Expand Down
4 changes: 2 additions & 2 deletions kernel/system/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ void ktrace(Context* regs)
asm volatile("int $3");
#endif
}

arch_dump_registers(regs);
else
arch_dump_registers(regs);

StackFrame* fp = __builtin_frame_address(0);

Expand Down

0 comments on commit 38716b2

Please sign in to comment.