summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/pgtable_64.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2016-02-22 03:41:15 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2016-02-29 10:34:39 +0100
commit849f86a630e9c84bf4c9d5dcbfe59dc94b2e15ce (patch)
tree440ffd5ffb57ccbc4005cd50e3ba471ea59d5595 /arch/powerpc/mm/pgtable_64.c
parentpowerpc/mm/book3s-64: Use physical addresses in upper page table tree levels (diff)
downloadlinux-849f86a630e9c84bf4c9d5dcbfe59dc94b2e15ce.tar.xz
linux-849f86a630e9c84bf4c9d5dcbfe59dc94b2e15ce.zip
powerpc/mm/book3s-64: Move _PAGE_PRESENT to the most significant bit
This changes _PAGE_PRESENT for 64-bit Book 3S processors from 0x2 to 0x8000_0000_0000_0000, because that is where PowerISA v3.0 CPUs in radix mode will expect to find it. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
-rw-r--r--arch/powerpc/mm/pgtable_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c
index a1bbdfd88630..af304e6d5a89 100644
--- a/arch/powerpc/mm/pgtable_64.c
+++ b/arch/powerpc/mm/pgtable_64.c
@@ -88,7 +88,7 @@ static __ref void *early_alloc_pgtable(unsigned long size)
* map_kernel_page adds an entry to the ioremap page table
* and adds an entry to the HPT, possibly bolting it
*/
-int map_kernel_page(unsigned long ea, unsigned long pa, int flags)
+int map_kernel_page(unsigned long ea, unsigned long pa, unsigned long flags)
{
pgd_t *pgdp;
pud_t *pudp;