aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/book3s
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2017-04-14 07:45:16 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-04-27 22:20:27 +1000
commitfd893fe56a1307d348fe5c077eb9b654288ce0c5 (patch)
tree6c2f204a6203864550dce7f2fd6be8565a6a0f00 /arch/powerpc/include/asm/book3s
parentpowerpc/mm: Fix page table dump build on PPC32 (diff)
downloadlinux-dev-fd893fe56a1307d348fe5c077eb9b654288ce0c5.tar.xz
linux-dev-fd893fe56a1307d348fe5c077eb9b654288ce0c5.zip
powerpc/mm: Fix missing page attributes in page table dump
On some targets, _PAGE_RW is 0 and this is _PAGE_RO which is used. There is also _PAGE_SHARED that is missing. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/book3s')
-rw-r--r--arch/powerpc/include/asm/book3s/64/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h
index fb8380a2d8d5..85bc9875c3be 100644
--- a/arch/powerpc/include/asm/book3s/64/pgtable.h
+++ b/arch/powerpc/include/asm/book3s/64/pgtable.h
@@ -13,6 +13,7 @@
#define _PAGE_BIT_SWAP_TYPE 0
#define _PAGE_RO 0
+#define _PAGE_SHARED 0
#define _PAGE_EXEC 0x00001 /* execute permission */
#define _PAGE_WRITE 0x00002 /* write access allowed */