PERFORCE change 89126 for review

Kip Macy kmacy at FreeBSD.org
Tue Jan 3 21:58:48 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=89126

Change 89126 by kmacy at kmacy:freebsd7_xen3 on 2006/01/04 05:58:44

	fix shutdown, we now shutdown and reboot cleanly	

Affected files ...

.. //depot/projects/xen3/src/sys/i386/i386/vm_machdep.c#3 edit
.. //depot/projects/xen3/src/sys/kern/kern_shutdown.c#2 edit

Differences ...

==== //depot/projects/xen3/src/sys/i386/i386/vm_machdep.c#3 (text+ko) ====

@@ -551,6 +551,11 @@
 	}
 #endif
 
+#ifdef XEN
+	HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_reboot);
+#endif
+
+
 #ifdef SMP
 	u_int cnt, map;
 

==== //depot/projects/xen3/src/sys/kern/kern_shutdown.c#2 (text+ko) ====

@@ -418,6 +418,9 @@
 		printf("Please press any key to reboot.\n\n");
 		switch (cngetc()) {
 		case -1:		/* No console, just die */
+#ifdef XEN
+		case 0:                 /* No valid input */
+#endif
 			cpu_halt();
 			/* NOTREACHED */
 		default:


More information about the p4-projects mailing list