xref: /plan9-contrib/sys/man/9k/panic (revision 9a45c011ebb706952407e415a3edd55793286a9e)
PANIC 9k
NAME
archreset, exit, panic, ndnr - abandon hope
SYNOPSIS
void archreset(void)

void exit(int ispanic)

void ndnr(void)

void panic(char *fmt, ...)

DESCRIPTION

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.

"SEE ALSO"
panic (9)
BUGS
Note the differences with panic (9).