From: Ben Pfaff <blp@cs.stanford.edu>
Date: Sun, 9 Nov 2008 23:21:21 +0000 (-0800)
Subject: Allow Bochs users to reboot by clicking the "user" button.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8334a8754dff78f83676742beb52c32d4cd8661e;p=pintos-anon

Allow Bochs users to reboot by clicking the "user" button.

The "user_shortcut" Bochs option allows specifying a key combination to
send to the VM when the user clicks on the "user" button in the Bochs
headerbar.

From Godmar, crossported from his usb-integration-aug08 branch.
---

diff --git a/src/utils/pintos b/src/utils/pintos
index fca610a..c71ebc2 100755
--- a/src/utils/pintos
+++ b/src/utils/pintos
@@ -480,6 +480,7 @@ cpu: ips=1000000
 megs: $mem
 log: bochsout.txt
 panic: action=fatal
+user_shortcut: keys=ctrlaltdel
 EOF
     print BOCHSRC "gdbstub: enabled=1\n" if $debug eq 'gdb';
     if ($realtime) {