Commit 333190eb authored by bellard's avatar bellard
Browse files

base memory size in cmos


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@714 c046a42c-6fe2-441c-8c8c-71466251a162
parent eccabc6e
...@@ -76,6 +76,10 @@ static void cmos_init(int ram_size, int boot_device) ...@@ -76,6 +76,10 @@ static void cmos_init(int ram_size, int boot_device)
/* various important CMOS locations needed by PC/Bochs bios */ /* various important CMOS locations needed by PC/Bochs bios */
/* memory size */ /* memory size */
val = 640; /* base memory in K */
rtc_set_memory(s, 0x15, val);
rtc_set_memory(s, 0x16, val >> 8);
val = (ram_size / 1024) - 1024; val = (ram_size / 1024) - 1024;
if (val > 65535) if (val > 65535)
val = 65535; val = 65535;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment