From: Benjamin Herrenschmidt Date: Fri, 13 Feb 2004 02:33:06 +0000 (+1100) Subject: ppc64: Add a missing isync in __hash_page, alloc hash table on PowerMac G5 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=872f2a3f6ef58505ae0fc5ef8b946c14631b5d7f;p=history.git ppc64: Add a missing isync in __hash_page, alloc hash table on PowerMac G5 --- diff --git a/arch/ppc64/mm/hash_low.S b/arch/ppc64/mm/hash_low.S index 0ea88a0fa2a0..9866e89d5be3 100644 --- a/arch/ppc64/mm/hash_low.S +++ b/arch/ppc64/mm/hash_low.S @@ -95,7 +95,7 @@ _GLOBAL(__hash_page) /* Write the linux PTE atomically (setting busy) */ stdcx. r30,0,r6 bne- 1b - + isync /* Step 2: * diff --git a/arch/ppc64/mm/hash_utils.c b/arch/ppc64/mm/hash_utils.c index 5632368a374e..a7e31d32c6a7 100644 --- a/arch/ppc64/mm/hash_utils.c +++ b/arch/ppc64/mm/hash_utils.c @@ -140,7 +140,8 @@ void __init htab_initialize(void) htab_data.htab_num_ptegs = pteg_count; htab_data.htab_hash_mask = pteg_count - 1; - if (systemcfg->platform == PLATFORM_PSERIES) { + if (systemcfg->platform == PLATFORM_PSERIES || + systemcfg->platform == PLATFORM_POWERMAC) { /* Find storage for the HPT. Must be contiguous in * the absolute address space. */