j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: Sat Oct 16 19:36:12 2010 New Revision: 906 URL: http://tracker.coreboot.org/trac/openbios/changeset/906
Log: ppc: Move hash table
To avoid complications with ppc64, always use the ppc64 alignment.
v2: * Initial. Suggested by Segher Boessenkool.
Cc: Segher Boessenkool segher@kernel.crashing.org Cc: Alexander Graf agraf@suse.de Signed-off-by: Andreas Färber andreas.faerber@web.de Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c
Modified: trunk/openbios-devel/arch/ppc/qemu/ofmem.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 19:36:08 2010 (r905) +++ trunk/openbios-devel/arch/ppc/qemu/ofmem.c Sat Oct 16 19:36:12 2010 (r906) @@ -389,14 +389,11 @@ ofmem_t *ofmem; unsigned long sdr1, sr_base, msr; unsigned long hash_base; - unsigned long hash_mask = 0xffff0000; + unsigned long hash_mask = 0xfff00000; /* alignment for ppc64 */ int i;
/* SDR1: Storage Description Register 1 */
- if(is_ppc64()) - hash_mask = 0xfff00000; - hash_base = (ramsize - 0x00100000 - HASH_SIZE) & hash_mask; memset((void *)hash_base, 0, HASH_SIZE); sdr1 = hash_base | ((HASH_SIZE-1) >> 16);