fix include paths

This commit is contained in:
kristina 2016-05-30 14:17:46 +01:00
parent 99bdd2580f
commit 26a606e3d7

View File

@ -17,20 +17,21 @@ Panic routine.
=============================================================================*/ =============================================================================*/
#include <common.h>
#include <cpu.h>
#include "xprintf.h" #undef panic
void panic(const char* fmt, ...) { void panic(const char* fmt, ...) {
xputs("panic(): "); printf("panic(): ");
va_list arp; va_list arp;
va_start(arp, fmt); va_start(arp, fmt);
xvprintf(fmt, arp); vprintf(fmt, arp);
va_end(arp); va_end(arp);
xputc('\n'); putchar('\n');
for (;;) { hang_cpu();
__asm__ __volatile__ ("nop" :::);
}
} }