diff options
-rw-r--r-- | arch/powerpc/include/asm/paca.h | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/slb_low.S | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h index 7796519fd238..e9e7a6999bb8 100644 --- a/arch/powerpc/include/asm/paca.h +++ b/arch/powerpc/include/asm/paca.h | |||
@@ -100,7 +100,7 @@ struct paca_struct { | |||
100 | /* SLB related definitions */ | 100 | /* SLB related definitions */ |
101 | u16 vmalloc_sllp; | 101 | u16 vmalloc_sllp; |
102 | u16 slb_cache_ptr; | 102 | u16 slb_cache_ptr; |
103 | u16 slb_cache[SLB_CACHE_ENTRIES]; | 103 | u32 slb_cache[SLB_CACHE_ENTRIES]; |
104 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 104 | #endif /* CONFIG_PPC_STD_MMU_64 */ |
105 | 105 | ||
106 | #ifdef CONFIG_PPC_BOOK3E | 106 | #ifdef CONFIG_PPC_BOOK3E |
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 |
279 | 1: /* offset >= SLB_CACHE_ENTRIES */ | 279 | 1: /* offset >= SLB_CACHE_ENTRIES */ |