modify file names and create directories
This commit is contained in:
21
lib/abort.c
Normal file
21
lib/abort.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user