kern

annotate 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
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 }