Files
mckernel/lib/abort.c
2012-12-17 15:39:24 +09:00

22 lines
304 B
C

#include <aal/debug.h>
#include <aal/cpu.h>
void panic(const char *msg)
{
cpu_disable_interrupt();
kprintf(msg);
while (1) {
cpu_halt();
}
}
extern void arch_show_interrupt_context(const void*);
void aal_mc_debug_show_interrupt_context(const void *reg)
{
arch_show_interrupt_context(reg);
}