Add support for attempting returns from panic
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Oct 2017 18:35:39 +0000 (14:35 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Oct 2017 18:57:25 +0000 (14:57 -0400)
commit2b284c49cea87c10f281ed331a939e6698eb43e6
tree5be5f55ece67222beeedaeddba2baf7ecdcf94c0
parent642707010dd8f5cd5bd4e743d04c8de1b9eacea0
Add support for attempting returns from panic

If you ever wanted to keep going after a panic, it just got a little
easier.  You can exit the monitor ('exit' or 'e'), like always.  This
commit cleans up a little so the core doesn't keep panicking.

This will rarely work well, since the system is toasted, but I've been able
to get back to userspace with it.  You might lose the core that panicked,
(e.g. MCP triggers a racy panic), but at least that core won't keep polling
the console in the monitor.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/syscall.h
kern/src/init.c
kern/src/syscall.c