From 26a606e3d7048be8f116d6af3c223e762e668020 Mon Sep 17 00:00:00 2001 From: kristina Date: Mon, 30 May 2016 14:17:46 +0100 Subject: [PATCH] fix include paths --- lib/panic.c => panic.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) rename lib/panic.c => panic.c (83%) diff --git a/lib/panic.c b/panic.c similarity index 83% rename from lib/panic.c rename to panic.c index cb9465c..fa57c53 100755 --- a/lib/panic.c +++ b/panic.c @@ -17,20 +17,21 @@ Panic routine. =============================================================================*/ +#include +#include -#include "xprintf.h" +#undef panic void panic(const char* fmt, ...) { - xputs("panic(): "); + printf("panic(): "); va_list arp; + va_start(arp, fmt); - xvprintf(fmt, arp); + vprintf(fmt, arp); va_end(arp); - xputc('\n'); + putchar('\n'); - for (;;) { - __asm__ __volatile__ ("nop" :::); - } + hang_cpu(); } \ No newline at end of file