1/*	$NetBSD: bugcrt.c,v 1.4 2002/05/04 22:05:30 scw 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
10void
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