Calculate "RamSize" needed by 16bit interface dynamically.
commitf85e4bc030e38966b48e8085ba74f58b40603a46
authorKevin O'Connor <kevin@koconnor.net>
Tue, 19 Feb 2013 06:33:45 +0000 (19 01:33 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 20 Feb 2013 02:57:24 +0000 (19 21:57 -0500)
treebaa9fd882a3f393d7df0a13ee182bf2b8df73767
parent0b314abc5841d5d1b25486e604cd91a6b3063e2c
Calculate "RamSize" needed by 16bit interface dynamically.

Calculate a LegacyRamSize directly from the e820 map for use by
handle_1588() and handle_15e801() (the only two external interfaces
that require "RamSize").  All other users of the existing RamSize (and
RamSizeOver4G) variables are specific to QEMU, so move the
declarations to paravirt.c.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
12 files changed:
src/acpi.c
src/coreboot.c
src/misc.c
src/mtrr.c
src/paravirt.c
src/paravirt.h
src/pciinit.c
src/pmm.c
src/smbios.c
src/system.c
src/util.h
src/xen.c