qemu/pc-bios/optionrom
Kevin Wolf 390fb6b471 multiboot: Don't forget last mmap entry
When the BIOS returns ebx = 0, the current entry is still valid and
needs to be included in the Multiboot memory map.

Fixing this meant that using bx as the entry index doesn't work any
more because it's 0 on the last entry (and it was SeaBIOS-specific
anyway), so the whole loop had to change a bit and should be more
generic as a result (ebx can be an arbitrary continuation number now,
and the entry size returned by the BIOS is used instead of hard-coding
20 bytes).

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1372018066-21822-2-git-send-email-mail@kevin-wolf.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-06-28 14:01:52 -05:00
..
kvmvapic.S kvmvapic: Use optionrom helpers 2012-02-18 12:16:01 +02:00
linuxboot.S fix linuxboot.bin and multiboot.bin to not hijack int19 2011-03-22 07:00:58 +01:00
Makefile signrom: Rewrite as python script 2012-04-16 15:41:20 +02:00
multiboot.S multiboot: Don't forget last mmap entry 2013-06-28 14:01:52 -05:00
optionrom.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00