Home | History | Annotate | Line # | Download | only in bootxx
panic_putstr.c revision 1.2.2.2
      1  1.2.2.2  nathanw /*	$NetBSD: panic_putstr.c,v 1.2.2.2 2002/06/20 03:41:57 nathanw Exp $	*/
      2  1.2.2.2  nathanw 
      3  1.2.2.2  nathanw 
      4  1.2.2.2  nathanw #include <machine/stdarg.h>
      5  1.2.2.2  nathanw #include <stand.h>
      6  1.2.2.2  nathanw #include "libsa.h"
      7  1.2.2.2  nathanw 
      8  1.2.2.2  nathanw __dead void
      9  1.2.2.2  nathanw panic(const char *fmt, ...)
     10  1.2.2.2  nathanw {
     11  1.2.2.2  nathanw 
     12  1.2.2.2  nathanw 	putstr("panic: ");
     13  1.2.2.2  nathanw 	putstr(fmt);
     14  1.2.2.2  nathanw 	putchar('\n');
     15  1.2.2.2  nathanw 
     16  1.2.2.2  nathanw 	breakpoint();
     17  1.2.2.2  nathanw 	exit(0);
     18  1.2.2.2  nathanw }
     19