kern
annotate 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 |
rev | line source |
---|---|
nuclear@11 | 1 #include <stdio.h> |
nuclear@11 | 2 #include <stdarg.h> |
nuclear@11 | 3 #include "asmops.h" |
nuclear@11 | 4 |
nuclear@11 | 5 void panic(const char *fmt, ...) |
nuclear@11 | 6 { |
nuclear@11 | 7 va_list ap; |
nuclear@11 | 8 |
nuclear@11 | 9 printf("~~~~~ kernel panic ~~~~~\n"); |
nuclear@11 | 10 va_start(ap, fmt); |
nuclear@11 | 11 vprintf(fmt, ap); |
nuclear@11 | 12 va_end(ap); |
nuclear@11 | 13 |
nuclear@11 | 14 disable_intr(); |
nuclear@11 | 15 halt_cpu(); |
nuclear@11 | 16 } |