Use an option rom instead of boot sector for -kernel
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 8 Nov 2008 16:27:07 +0000 (16:27 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 8 Nov 2008 16:27:07 +0000 (16:27 +0000)
commit4fc9af53d88c0a2a810704a06cb39a7182982e4e
treed9ab5efe3c67a3be6d1227c9b9818438211ab169
parent6223246ad9d6492f6159104759662521fb61fe9f
Use an option rom instead of boot sector for -kernel

Generate an option rom instead of using a hijacked boot sector for kernel
booting.  This just requires adding a small option ROM header and a few more
instructions to the boot sector to take over the int19 vector and run our
boot code.

A disk is no longer needed when using -kernel on x86.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5650 c046a42c-6fe2-441c-8c8c-71466251a162
block.c
block.h
block_int.h
hw/pc.c