]> git.proxmox.com Git - qemu.git/commit
multiboot: Calculate upper_mem in the ROM
authorKevin Wolf <mail@kevin-wolf.de>
Sun, 23 Jun 2013 20:07:45 +0000 (22:07 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Jun 2013 19:01:52 +0000 (14:01 -0500)
commit26a8ec07616df8eeb7ae5e76a4eade6809c426e3
tree23953b1d7a5120432ce1d446d9ea63b4971a54c7
parent390fb6b47144adbad453cdf95c130854728c56f8
multiboot: Calculate upper_mem in the ROM

The upper_mem field of the Multiboot information struct doesn't really
contain the RAM size - 1 MB like we used to calculate it, but only the
memory from 1 MB up to the first (upper) memory hole.

In order to correctly retrieve this information, the multiboot ROM now
looks at the mmap it creates anyway and tries to find the size of
contiguous usable memory from 1 MB.

Drop the multiboot.c definition of lower_mem and upper_mem because both
are queried at runtime now.

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1372018066-21822-3-git-send-email-mail@kevin-wolf.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/i386/multiboot.c
pc-bios/optionrom/multiboot.S