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