mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-12 08:36:05 -04:00
28 lines
443 B
C
28 lines
443 B
C
/* $NetBSD: bugcrt.c,v 1.5 2008/01/12 09:54:30 tsutsui Exp $ */
|
|
|
|
#include <sys/types.h>
|
|
#include <machine/prom.h>
|
|
|
|
#include <lib/libsa/stand.h>
|
|
|
|
#include "libbug.h"
|
|
|
|
void
|
|
_bugstart(void)
|
|
{
|
|
extern int main(void);
|
|
struct mvmeprom_brdid *id;
|
|
|
|
/*
|
|
* Be sure not to de-reference NULL
|
|
*/
|
|
if (bugargs.arg_end != NULL)
|
|
*bugargs.arg_end = 0;
|
|
|
|
id = mvmeprom_getbrdid();
|
|
bugargs.cputyp = id->model;
|
|
(void)main();
|
|
_rtt();
|
|
/* NOTREACHED */
|
|
}
|