aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:51:30 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:51:30 +0000
commit333190eb9790ad585a8c18cbb380c07db20f35b4 (patch)
tree437b5e098a9b8f756a1612370c5e41c5829724f8 /hw/pc.c
parenteccabc6ee0da82a3cb6037537c145fae08c23041 (diff)
base memory size in cmos
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@714 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pc.c b/hw/pc.c
index 496f365e6b..83e614bbbb 100644
--- 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;