summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2019-02-23 20:30:50 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2019-02-23 20:30:50 +1100
commitf68e7927212fa0dbe44c00c144b643c87ab0cf43 (patch)
tree27a5a325fb4da4ad91ae1d5e495b35eef3c3a5fa /arch/powerpc/mm
parente66c3209c7fd17209ccc4cbbee8b1b1bd5c438dd (diff)
downloadlinux-f68e7927212fa0dbe44c00c144b643c87ab0cf43.tar.gz
linux-f68e7927212fa0dbe44c00c144b643c87ab0cf43.tar.bz2
linux-f68e7927212fa0dbe44c00c144b643c87ab0cf43.zip
Revert "powerpc/book3s32: Reorder _PAGE_XXX flags to simplify TLB handling"
This reverts commit 78ca1108b10927b3d068c8da91352b0f4cd01fc5. It is causing boot failures with qemu mac99 in at least some configurations.
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/hash_low_32.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/mm/hash_low_32.S b/arch/powerpc/mm/hash_low_32.S
index f4294edeca9d..d94fef524ef5 100644
--- a/arch/powerpc/mm/hash_low_32.S
+++ b/arch/powerpc/mm/hash_low_32.S
@@ -310,9 +310,11 @@ Hash_msk = (((1 << Hash_bits) - 1) * 64)
_GLOBAL(create_hpte)
/* Convert linux-style PTE (r5) to low word of PPC-style PTE (r8) */
+ rlwinm r8,r5,32-10,31,31 /* _PAGE_RW -> PP lsb */
rlwinm r0,r5,32-7,31,31 /* _PAGE_DIRTY -> PP lsb */
- and r8, r5, r0 /* writable if _RW & _DIRTY */
- rlwimi r5, r5, 32 - 1, 31, 31 /* _PAGE_USER -> PP lsb */
+ and r8,r8,r0 /* writable if _RW & _DIRTY */
+ rlwimi r5,r5,32-1,30,30 /* _PAGE_USER -> PP msb */
+ rlwimi r5,r5,32-2,31,31 /* _PAGE_USER -> PP lsb */
ori r8,r8,0xe04 /* clear out reserved bits */
andc r8,r5,r8 /* PP = user? (rw&dirty? 2: 3): 0 */
BEGIN_FTR_SECTION