kern

view src/panic.c @ 11:cccaa40f5432

forgot to add a load of stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 19 Feb 2011 04:41:51 +0200
parents
children 6c9138a87e02
line source
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "asmops.h"
5 void panic(const char *fmt, ...)
6 {
7 va_list ap;
9 printf("~~~~~ kernel panic ~~~~~\n");
10 va_start(ap, fmt);
11 vprintf(fmt, ap);
12 va_end(ap);
14 disable_intr();
15 halt_cpu();
16 }