Try to hard-reboot on rerun of post even on emulators.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 16 Sep 2010 01:48:16 +0000 (21:48 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 16 Sep 2010 01:48:16 +0000 (21:48 -0400)
commit244caf86f11f5f65d166d91704f64cb673167abc
treeeb0f32c8469d15625ad34ebc3c4fec6068a767e9
parent5bd01de26257849f36d361018c3ec17aa29b0218
Try to hard-reboot on rerun of post even on emulators.

Extend the hard-reboot logic to qemu and kvm.  On qemu, a reboot will
not reset the memory settings for 0xc0000-0xfffff, so copy that memory
area manually before rebooting.  Unfortunately, kvm does not keep a
pristine copy of the BIOS at 0xffff0000, so detect that case and
shutdown the machine.
Makefile
src/apm.c
src/post.c
src/shadow.c
src/util.h