void exit(int ispanic)
void ndnr(void)
void panic(char *fmt, ...)
Archreset reboots the machine.
Depending on configuration settings, the platform-dependent exit might reboot the system. If ispanic is set, panic is called.
Ndnr (no deposit, no return) disables all interrupt sources and halts the current processor.
Panic writes a message to the console and causes the system to give up the ghost. It disables interrupts, dumps the kernel stack, and halts the current processor; if more than one, others will gradually come to a halt. A subsequent panic on a different processor will halt that processor with ndnr; a recursive panic will reboot the machine with archreset.
The format fmt and associated arguments are the same as those for print (9). Panic adds a prefix .L "panic: cpun:" and a trailing newline.