voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

panic.c (205B)


      1 #include <kernel.h>
      2 #include <irq.h>
      3 
      4 void
      5 panic(const char *fmt, ...)
      6 {
      7 	va_list ap;
      8 
      9 	irq_disable();
     10 	kprintf("~~~ kernel panic ~~~\n");
     11 	va_start(ap, fmt);
     12 	kvprintf(fmt, ap);
     13 	va_end(ap);
     14 	for (;;);
     15 }