qemu-patch-raspberry4/hw/i386
Kevin Wolf 26a8ec0761 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>
2013-06-28 14:01:52 -05:00
..
kvm kvm: Change cpu_synchronize_state() argument to CPUState 2013-06-28 13:25:12 +02:00
kvmvapic.c kvm: Change cpu_synchronize_state() argument to CPUState 2013-06-28 13:25:12 +02:00
Makefile.objs hw: move hw/kvm/ to hw/i386/kvm 2013-04-08 18:13:16 +02:00
multiboot.c multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc.c cpu: Change cpu_exit() argument to CPUState 2013-06-28 13:25:12 +02:00
pc_piix.c Move hardcoded initialization of xen-platform device. 2013-06-25 12:00:53 +00:00
pc_q35.c target-i386: Update model values on Conroe/Penryn/Nehalem CPU models 2013-06-10 23:33:18 +02:00
smbios.c smbios: Check R in -smbios type=0, release=R parses okay 2013-06-14 08:58:58 -05:00
xen_domainbuild.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_domainbuild.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_machine_pv.c xen_machine_pv: do not create a dummy CPU in machine->init 2013-06-03 15:41:26 +00:00