]> git.neil.brown.name Git - history.git/commitdiff
ppc64: Add a missing isync in __hash_page, alloc hash table on PowerMac G5
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:33:06 +0000 (13:33 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:33:06 +0000 (13:33 +1100)
arch/ppc64/mm/hash_low.S
arch/ppc64/mm/hash_utils.c

index 0ea88a0fa2a092966c0e2c14c2e44ef486f5f355..9866e89d5be3a5146a2da0a4f37c72f0869f52aa 100644 (file)
@@ -95,7 +95,7 @@ _GLOBAL(__hash_page)
        /* Write the linux PTE atomically (setting busy) */
        stdcx.  r30,0,r6
        bne-    1b
-       
+       isync
 
        /* Step 2:
         *
index 5632368a374eb20cdde673a63a03ec2cdf005d95..a7e31d32c6a7e208db3e0ca23962453009d467a2 100644 (file)
@@ -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.
                 */