]> git.proxmox.com Git - mirror_qemu.git/commitdiff
base memory size in cmos
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 7 Apr 2004 20:51:30 +0000 (20:51 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 7 Apr 2004 20:51:30 +0000 (20:51 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@714 c046a42c-6fe2-441c-8c8c-71466251a162

hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 496f365e6b44eaf291b3d829364d6c6bed2a5f34..83e614bbbbbc6dbea6e4963d9638052456914901 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -76,6 +76,10 @@ static void cmos_init(int ram_size, int boot_device)
     /* various important CMOS locations needed by PC/Bochs bios */
 
     /* 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;
     if (val > 65535)
         val = 65535;