aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2012-09-09 22:52:54 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-17 02:31:51 -0400
commit735cafc32b661f08a266a8d754e6cfbd82c11704 (patch)
treed80d18dc290c93a0e39f1e99435aea0690b9b2e7 /arch/powerpc/mm
parentac8dc2823a30a2d166fed6e919ab2e576f8fca84 (diff)
powerpc/mm: Use 32bit array for slb cache
With larger vsid we need to track more bits of ESID in slb cache for slb invalidate. Reviewed-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/slb_low.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S
index 3b75f19aaa22..f6a262555ef2 100644
--- a/arch/powerpc/mm/slb_low.S
+++ b/arch/powerpc/mm/slb_low.S
@@ -270,10 +270,10 @@ _GLOBAL(slb_compare_rr_to_size)
270 bge 1f 270 bge 1f
271 271
272 /* still room in the slb cache */ 272 /* still room in the slb cache */
273 sldi r11,r3,1 /* r11 = offset * sizeof(u16) */ 273 sldi r11,r3,2 /* r11 = offset * sizeof(u32) */
274 rldicl r10,r10,36,28 /* get low 16 bits of the ESID */ 274 srdi r10,r10,28 /* get the 36 bits of the ESID */
275 add r11,r11,r13 /* r11 = (u16 *)paca + offset */ 275 add r11,r11,r13 /* r11 = (u32 *)paca + offset */
276 sth r10,PACASLBCACHE(r11) /* paca->slb_cache[offset] = esid */ 276 stw r10,PACASLBCACHE(r11) /* paca->slb_cache[offset] = esid */
277 addi r3,r3,1 /* offset++ */ 277 addi r3,r3,1 /* offset++ */
278 b 2f 278 b 2f
2791: /* offset >= SLB_CACHE_ENTRIES */ 2791: /* offset >= SLB_CACHE_ENTRIES */