Displaying 1 result from an estimated 1 matches for "extra_mem".
Did you mean:
extra_len
2013 Nov 12
16
[PATCH] hvmloader: write extra memory in CMOS
.../hvmloader/hvmloader.c
index 1cc8cf2..327dffd 100644
--- a/tools/firmware/hvmloader/hvmloader.c
+++ b/tools/firmware/hvmloader/hvmloader.c
@@ -146,6 +146,7 @@ static void init_hypercalls(void)
static void cmos_write_memory_size(void)
{
uint32_t base_mem = 640, ext_mem, alt_mem;
+ uint64_t extra_mem = 0;
alt_mem = ext_mem = hvm_info->low_mem_pgend << PAGE_SHIFT;
ext_mem = (ext_mem > 0x0100000) ? (ext_mem - 0x0100000) >> 10 : 0;
@@ -153,6 +154,15 @@ static void cmos_write_memory_size(void)
ext_mem = 0xffff;
alt_mem = (alt_mem > 0x1000000) ? (alt_me...