Multiboot support: Fix rom_copy
commita1678e85dbcdc643929440d5c15c42ee33404034
authorKevin Wolf <mail@kevin-wolf.de>
Sat, 19 Dec 2009 20:15:20 +0000 (19 21:15 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 19 Dec 2009 20:51:10 +0000 (19 21:51 +0100)
treeb738cc0379c41b9b1ecdfe8706e65837a5226a82
parent8212d18cf574154a3b3320c39d0a23f4f421b616
Multiboot support: Fix rom_copy

ROMs need to be loaded if they are anywhere in the requested area, not
only at the very beginning. This fixes Multiboot with ELF kernels that
have more than one program header.

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 935effc2bbd2c441b755a8d280811a9763fdb98c)
hw/loader.c