doboot();
for (;;);
boot(howto)	register int howto;{	/* take a snap shot before clobbering any registers */#if 0	if (curproc && curproc->p_addr)		savectx(curpcb);#endif 	boothowto = howto;	if ((howto & RB_NOSYNC) == 0 && waittime < 0) {		extern struct proc proc0;		/* protect against curproc->p_stats.foo refs in sync()   XXX */		if (curproc == NULL)			curproc = &proc0;		waittime = 0;		vfs_shutdown();		/*		 * If we've been adjusting the clock, the todr		 * will be out of synch; adjust it now.		 */		resettodr();	}	/* Disable interrupts. */	splhigh();	if (howto & RB_HALT) {		printf("halted\n\n");	} else {		/* If rebooting and a dump is requested, do it. */		if (howto & RB_DUMP)			dumpsys();		/* Run any shutdown hooks. */		doshutdownhooks();	}	doboot();	/*NOTREACHED*/	for (;;);  /* to keep compiler happy, and me from going crazy */}