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