a07f7c8069
- KNF, ANSIfy, remove __P() - use __func__ to print function names - use __arraycount() - include "ioconf.h" for struct cfdriver - u_intNN_t -> uintNN_t - wrap long lines etc.
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 */
|
|
}
|