Commit 333190eb9790ad585a8c18cbb380c07db20f35b4

Authored by bellard
1 parent eccabc6e

base memory size in cmos


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@714 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
@@ -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)
76 /* various important CMOS locations needed by PC/Bochs bios */ 76 /* various important CMOS locations needed by PC/Bochs bios */
77 77
78 /* memory size */ 78 /* memory size */
  79 + val = 640; /* base memory in K */
  80 + rtc_set_memory(s, 0x15, val);
  81 + rtc_set_memory(s, 0x16, val >> 8);
  82 +
79 val = (ram_size / 1024) - 1024; 83 val = (ram_size / 1024) - 1024;
80 if (val > 65535) 84 if (val > 65535)
81 val = 65535; 85 val = 65535;