diff options
author | Paul Mackerras <paulus@samba.org> | 2016-02-22 03:41:15 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-02-29 10:34:39 +0100 |
commit | 849f86a630e9c84bf4c9d5dcbfe59dc94b2e15ce (patch) | |
tree | 440ffd5ffb57ccbc4005cd50e3ba471ea59d5595 /arch/powerpc/mm/pgtable_64.c | |
parent | powerpc/mm/book3s-64: Use physical addresses in upper page table tree levels (diff) | |
download | linux-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.c | 2 |
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; |