Commit 8e5aaa9b authored by David Gibson's avatar David Gibson Committed by Paul Mackerras

PPC32: more PPC40x cleanup (remove CONFIG_PIN_TLB, add comments).

parent 314d12aa
...@@ -354,7 +354,7 @@ _GLOBAL(_nmask_and_or_msr) ...@@ -354,7 +354,7 @@ _GLOBAL(_nmask_and_or_msr)
* Flush MMU TLB * Flush MMU TLB
*/ */
_GLOBAL(_tlbia) _GLOBAL(_tlbia)
#if defined(CONFIG_40x) && defined(CONFIG_PIN_TLB) #if defined(CONFIG_40x)
/* This needs to be coordinated with other pinning functions since /* This needs to be coordinated with other pinning functions since
* we don't keep a memory location of number of entries to reduce * we don't keep a memory location of number of entries to reduce
* cache pollution during these operations. * cache pollution during these operations.
...@@ -367,7 +367,7 @@ _GLOBAL(_tlbia) ...@@ -367,7 +367,7 @@ _GLOBAL(_tlbia)
cmpwi 0, r3, 61 /* reserve last two entries */ cmpwi 0, r3, 61 /* reserve last two entries */
ble 1b ble 1b
isync isync
#else #else /* ! defined(CONFIG_40x) */
#if defined(CONFIG_SMP) #if defined(CONFIG_SMP)
rlwinm r8,r1,0,0,18 rlwinm r8,r1,0,0,18
lwz r8,TI_CPU(r8) lwz r8,TI_CPU(r8)
...@@ -401,7 +401,7 @@ _GLOBAL(_tlbia) ...@@ -401,7 +401,7 @@ _GLOBAL(_tlbia)
tlbia tlbia
sync sync
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#endif /* defined(CONFIG_40x) && defined(CONFIG_PIN_TLB) */ #endif /* ! defined(CONFIG_40x) */
blr blr
/* /*
...@@ -412,7 +412,7 @@ _GLOBAL(_tlbie) ...@@ -412,7 +412,7 @@ _GLOBAL(_tlbie)
tlbsx. r3, 0, r3 tlbsx. r3, 0, r3
bne 10f bne 10f
sync sync
/* There are only 64 TLB entries, so r3 < 64, which means bit 25, is clear. /* There are only 64 TLB entries, so r3 < 64, which means bit 25 is clear.
* Since 25 is the V bit in the TLB_TAG, loading this value will invalidate * Since 25 is the V bit in the TLB_TAG, loading this value will invalidate
* the TLB entry. */ * the TLB entry. */
tlbwe r3, r3, TLB_TAG tlbwe r3, r3, TLB_TAG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment