1 /* $NetBSD: bugcrt.c,v 1.5 2008/01/12 09:54:30 tsutsui Exp $ */ 2 3 #include <sys/types.h> 4 #include <machine/prom.h> 5 6 #include <lib/libsa/stand.h> 7 8 #include "libbug.h" 9 10 void 11 _bugstart(void) 12 { 13 extern int main(void); 14 struct mvmeprom_brdid *id; 15 16 /* 17 * Be sure not to de-reference NULL 18 */ 19 if (bugargs.arg_end != NULL) 20 *bugargs.arg_end = 0; 21 22 id = mvmeprom_getbrdid(); 23 bugargs.cputyp = id->model; 24 (void)main(); 25 _rtt(); 26 /* NOTREACHED */ 27 } 28