Fix loading of ELF multiboot kernels
commit092493be3caab1ac77f4223b4c3fb0975d1ed490
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Dec 2009 16:19:25 +0000 (4 17:19 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 18 Dec 2009 17:26:26 +0000 (18 11:26 -0600)
tree2114404d419f7424302d5ec8332e81654ce0c46f
parent75f124753922451ee697defd81a80a91ce3f9888
Fix loading of ELF multiboot kernels

The multiboot implementation assumed that there is only one program header
(which contains the entry point) and that the entry point is at the start of
the code. This doesn't hold true generally and caused too little data to be
loaded.

Fix the loading code to pass the whole loaded data to the Multiboot Option ROM.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/loader.c
hw/pc.c