aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-19 01:33:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-19 21:57:24 -0500
commitf85e4bc030e38966b48e8085ba74f58b40603a46 (patch)
treebaa9fd882a3f393d7df0a13ee182bf2b8df73767 /src/util.h
parent0b314abc5841d5d1b25486e604cd91a6b3063e2c (diff)
downloadseabios-f85e4bc030e38966b48e8085ba74f58b40603a46.tar.gz
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>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 9303b5a5..306a8bf8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -371,6 +371,7 @@ int rom_confirm(u32 size);
void csm_malloc_preinit(u32 low_pmm, u32 low_pmm_size, u32 hi_pmm,
u32 hi_pmm_size);
void malloc_preinit(void);
+extern u32 LegacyRamSize;
void malloc_init(void);
void malloc_prepboot(void);
void *pmm_malloc(struct zone_s *zone, u32 handle, u32 size, u32 align);
@@ -450,8 +451,6 @@ void reset_vector(void) __noreturn;
// misc.c
void mathcp_setup(void);
-extern u32 RamSize;
-extern u64 RamSizeOver4G;
extern u8 BiosChecksum;
// version (auto generated file out/version.c)