commit 8ef9171a0b8f453f32d8a3a24f30d4728bd28470
parent 0e8765dc03ad5883598069241a38e6106e0d98a0
Author: Brian Swetland <swetland@frotz.net>
Date: Sun, 5 Jan 2014 12:53:23 -0800
console: reboot on ctrl-z
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/console.c b/kernel/console.c
@@ -205,6 +205,9 @@ consoleintr(int (*getc)(void))
acquire(&input.lock);
while((c = getc()) >= 0){
switch(c){
+ case C('Z'): // reboot
+ lidt(0,0);
+ break;
case C('P'): // Process listing.
procdump();
break;