]> git.proxmox.com Git - qemu.git/commit
multiboot: Don't forget last mmap entry
authorKevin Wolf <mail@kevin-wolf.de>
Sun, 23 Jun 2013 20:07:44 +0000 (22:07 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Jun 2013 19:01:52 +0000 (14:01 -0500)
commit390fb6b47144adbad453cdf95c130854728c56f8
treed41e418a88f68e96457bea8b341fe46c019ea3af
parent6bedfe94c96c5ba35fcb2a52b438fefcc682669e
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>
pc-bios/optionrom/multiboot.S