]> git.ipfire.org Git - thirdparty/qemu.git/commit
pc: Fix RTC CMOS info on RAM for ram_size < 1MiB
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Aug 2012 11:12:20 +0000 (13:12 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Aug 2012 20:42:32 +0000 (15:42 -0500)
commitcfeb9958c8f4f99f08222a47fe42ea73acb41ecc
tree858852275a7a71e26d3c3c82d474f305bc170a80
parentffc7565c81b010683c3cab8efe9accd0eb90aa0d
pc: Fix RTC CMOS info on RAM for ram_size < 1MiB

pc_cmos_init() always claims 640KiB base memory, and ram_size - 1MiB
extended memory.  The latter can underflow to "lots of extended
memory".  Fix both, and clean up some.

Note: SeaBIOS currently requires 1MiB of RAM, and doesn't check
whether it got enough.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit e89001f72edde37fb36fa7c964daa1bbeb2eca26)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/pc.c