NetBSD/sys/arch/mvme68k/stand/libbug/bugcrt.c
tsutsui a07f7c8069 Misc cleanup:
- 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.
2008-01-12 09:54:21 +00:00

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 */
}