kern

view src/panic.c @ 12:eaec918de072

- fixed the scrolling issue - other minor crap
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 Feb 2011 18:51:44 +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 }