Subject: add 40-48 physical address range to seabios

From: Andrea Arcangeli <aarca...@redhat.com>

Needed to show >1TB RAM to guests.

Signed-off-by: Andrea Arcangeli <aarca...@redhat.com>
---

diff --git a/hw/pc.c b/hw/pc.c
index 9c08573..7e1f2e9 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -360,6 +360,7 @@ void pc_cmos_init(ram_addr_t ram_size, ram_addr_t 
above_4g_mem_size,
         rtc_set_memory(s, 0x5b, (unsigned int)above_4g_mem_size >> 16);
         rtc_set_memory(s, 0x5c, (unsigned int)above_4g_mem_size >> 24);
         rtc_set_memory(s, 0x5d, (uint64_t)above_4g_mem_size >> 32);
+        rtc_set_memory(s, 0x5e, (uint64_t)above_4g_mem_size >> 40);
     }
 
     if (ram_size > (16 * 1024 * 1024))

Reply via email to