j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Tue Feb 8 23:06:51 2011 New Revision: 1021 URL: http://tracker.coreboot.org/trac/openbios/changeset/1021
Log: Explicitly claim physical and virtual memory used by OpenBIOS in OFMEM under SPARC32.
This is required to ensure that Solaris doesn't consider the memory used by OpenBIOS as available when interpreting the memory lists.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c
Modified: trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c ============================================================================== --- trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Tue Feb 8 23:06:49 2011 (r1020) +++ trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Tue Feb 8 23:06:51 2011 (r1021) @@ -161,4 +161,10 @@ { memset(&s_ofmem_data, 0, sizeof(s_ofmem_data)); s_ofmem_data.ofmem.ramsize = qemu_mem_size; + + /* Claim reserved physical addresses at top of RAM */ + ofmem_claim_phys(ofmem_arch_get_phys_top(), s_ofmem_data.ofmem.ramsize - ofmem_arch_get_phys_top(), 0); + + /* Claim OpenBIOS reserved space */ + ofmem_claim_virt(0xffd00000, 0x300000, 0); }