mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
powerpc/mm/hash: Use the correct PPP mask when updating HPTE
With commite58e87adc8"powerpc/mm: Update _PAGE_KERNEL_RO" we now use all the three PPP bits. The top bit is now used to have a PPP value of 0b110 which will be mapped to kernel read only. When updating the hpte entry use right mask such that we update the 63rd bit (top 'P' bit) too. Prior toe58e87adc8we didn't support KERNEL_RO at all (it was == KERNEL_RW), so this isn't a regression as such. Fixes:e58e87adc8("powerpc/mm: Update _PAGE_KERNEL_RO") Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
a145abf12c
commit
8550e2fa34
2 changed files with 5 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue