qemu/hw
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
..
9pfs hw/9pfs: Be robust against paths without FS_IOC_GETVERSION 2013-05-28 15:23:12 +05:30
acpi piix: fix some printf errors when debug is enabled 2013-06-14 14:38:45 +04:00
alpha cpu: Turn cpu_unassigned_access() into a CPUState hook 2013-06-28 13:25:13 +02:00
arm arm/boot: Free dtb blob memory after use 2013-06-25 18:34:13 +01:00
audio Merge branch 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu 2013-06-15 10:53:44 +00:00
block nand: Don't inherit from Sysbus 2013-06-25 19:15:46 +01:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char cadence_uart: Handle backend tx errors 2013-06-24 16:26:52 +02:00
core memory: make section size a 128-bit integer 2013-06-20 16:32:47 +02:00
cpu target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
cris hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
display Merge remote-tracking branch 'spice/spice.v71' into staging 2013-06-24 14:33:09 -05:00
dma dma: eliminate DMAContext 2013-06-20 16:39:52 +02:00
gpio Remove unneeded type casts 2013-04-19 11:36:33 +02:00
i2c qdev: Drop FROM_QBUS() macro 2013-06-07 14:55:33 +02:00
i386 multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
ide cmd646: fix build when DEBUG_IDE is enabled. 2013-06-28 15:46:38 +02:00
input isa: Use realizefn for ISADevice 2013-06-07 12:14:45 +02:00
intc intc/xilinx_intc: Dont lower IRQ when HIE cleared 2013-06-18 09:45:00 +02:00
isa isa: QOM'ify ISADevice 2013-06-07 14:55:33 +02:00
lm32 qdev: Drop taddr properties 2013-04-20 17:54:52 +00:00
m68k hw: move char devices to hw/char/, configure via default-configs/ 2013-04-08 18:13:14 +02:00
microblaze microblaze/petalogix_s3adsp1800_mmu: Fix UART IRQ 2013-06-18 09:44:59 +02:00
mips cpu: Change cpu_exit() argument to CPUState 2013-06-28 13:25:12 +02:00
misc kvm: Change cpu_synchronize_state() argument to CPUState 2013-06-28 13:25:12 +02:00
moxie Trivial grammar and spelling fixes 2013-05-01 20:55:21 +04:00
net Merge branch 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu 2013-06-15 10:53:44 +00:00
nvram fw_cfg: fw_cfg is a singleton 2013-06-02 18:14:14 +03:00
openrisc hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci memory: give name to every AddressSpace 2013-06-20 16:39:52 +02:00
pci-bridge dec.c - move to pci-bridge 2013-06-02 18:13:37 +03:00
pci-host dec.c - move to pci-bridge 2013-06-02 18:13:37 +03:00
ppc cpu: Change cpu_exit() argument to CPUState 2013-06-28 13:25:12 +02:00
s390x virtio-ccw: Wire up guest and host notifies. 2013-06-25 17:11:12 +02:00
scsi dma: eliminate DMAContext 2013-06-20 16:39:52 +02:00
sd sd: pass bool parameter for sd_init 2013-06-21 22:52:50 +04:00
sh4 arm: fix location of some include files 2013-04-15 15:16:01 +02:00
sparc refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
sparc64 isa: QOM'ify ISABus 2013-06-07 14:55:25 +02:00
ssi qdev: Drop FROM_QBUS() macro 2013-06-07 14:55:33 +02:00
timer i.MX: Rework functions/types name and use new style initialization 2013-06-25 18:34:13 +01:00
tpm Move TPM passthrough specific command line options to backend structure 2013-04-23 10:40:40 -05:00
unicore32 console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
usb usb: add serial bus property 2013-06-24 08:41:07 +02:00
virtio memory: make section size a 128-bit integer 2013-06-20 16:32:47 +02:00
watchdog wdt_i6300esb: fix vmstate versioning 2013-06-18 13:44:37 -05:00
xen memory: make section size a 128-bit integer 2013-06-20 16:32:47 +02:00
xtensa sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00