From within a virtual kernel, make /sbin/shutdown and /sbin/halt actually
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 27 May 2007 23:28:30 +0000 (23:28 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 27 May 2007 23:28:30 +0000 (23:28 +0000)
commit40d0276cebb005b355d5947523e6a8a12f5254b9
tree9ec44da5cf8b4740a4107225e624aadc1f9d276a
parent705d55f19483254981ce77b83b02d30f4d8d6e17
From within a virtual kernel, make /sbin/shutdown and /sbin/halt actually
halt and exit the vkernel, and make /sbin/reboot automatically re-exec
a fresh vkernel.

Talk about creating a clean slate!  Having reboot re-exec the vkernel
is really nice.  The kernel development cycle time is now down to around
18 seconds, reboot -n -q to root login prompt, and 28 seconds for a normal
reboot.  That's running a vkernel with a normal RC startup and as a
bridged DHCP client.
sys/kern/kern_shutdown.c
sys/platform/vkernel/platform/init.c