7 * Panic is called on unresolvable fatal errors.
8 * It prints "panic: <message>", then causes a breakpoint exception,
9 * which causes JOS to enter the JOS kernel monitor.
12 _panic(const char *file
, int line
, const char *fmt
, ...)
18 // Print the panic message
20 cprintf("%s: ", argv0
);
21 cprintf("user panic in %s at %s:%d: ", binaryname
, file
, line
);
25 // Cause a breakpoint exception