aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pte-8xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/pte-8xx.h')
-rw-r--r--arch/powerpc/include/asm/pte-8xx.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/pte-8xx.h b/arch/powerpc/include/asm/pte-8xx.h
index daa4616e61c4..eb6edb44f140 100644
--- a/arch/powerpc/include/asm/pte-8xx.h
+++ b/arch/powerpc/include/asm/pte-8xx.h
@@ -46,9 +46,9 @@
46 * require a TLB exception handler change. It is assumed unused bits 46 * require a TLB exception handler change. It is assumed unused bits
47 * are always zero. 47 * are always zero.
48 */ 48 */
49#define _PAGE_RW 0x0400 /* lsb PP bits, inverted in HW */ 49#define _PAGE_RO 0x0400 /* lsb PP bits */
50#define _PAGE_USER 0x0800 /* msb PP bits */ 50#define _PAGE_USER 0x0800 /* msb PP bits */
51/* set when neither _PAGE_USER nor _PAGE_RW are set */ 51/* set when _PAGE_USER is unset and _PAGE_RO is set */
52#define _PAGE_KNLRO 0x0200 52#define _PAGE_KNLRO 0x0200
53 53
54#define _PMD_PRESENT 0x0001 54#define _PMD_PRESENT 0x0001
@@ -62,9 +62,8 @@
62#define PTE_ATOMIC_UPDATES 1 62#define PTE_ATOMIC_UPDATES 1
63 63
64/* We need to add _PAGE_SHARED to kernel pages */ 64/* We need to add _PAGE_SHARED to kernel pages */
65#define _PAGE_KERNEL_RO (_PAGE_SHARED | _PAGE_KNLRO) 65#define _PAGE_KERNEL_RO (_PAGE_SHARED | _PAGE_RO | _PAGE_KNLRO)
66#define _PAGE_KERNEL_ROX (_PAGE_EXEC | _PAGE_KNLRO) 66#define _PAGE_KERNEL_ROX (_PAGE_EXEC | _PAGE_RO | _PAGE_KNLRO)
67#define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE)
68 67
69#endif /* __KERNEL__ */ 68#endif /* __KERNEL__ */
70#endif /* _ASM_POWERPC_PTE_8xx_H */ 69#endif /* _ASM_POWERPC_PTE_8xx_H */