diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-15 19:23:31 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-22 06:05:35 -0500 |
commit | 9522d7e4cb5e0858122fc55d33a2c07728f0b10d (patch) | |
tree | 49438ddcd5217da82cf9ebe79dda8577bc346456 /arch/arm/mm/proc-v7.S | |
parent | e926f4495e202500a6265987277fab217e235f08 (diff) |
ARM: pgtable: invert L_PTE_EXEC to L_PTE_XN
The hardware page tables use an XN bit 'execute never'. Historically,
we've had a Linux 'execute allow' bit, in the positive sense. Get rid
of this artifact as future hardware will continue to have the XN sense.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 89c31a6dae5c..4f5a594aa5fd 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -149,8 +149,8 @@ ENTRY(cpu_v7_set_pte_ext) | |||
149 | tstne r3, #PTE_EXT_APX | 149 | tstne r3, #PTE_EXT_APX |
150 | bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0 | 150 | bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0 |
151 | 151 | ||
152 | tst r1, #L_PTE_EXEC | 152 | tst r1, #L_PTE_XN |
153 | orreq r3, r3, #PTE_EXT_XN | 153 | orrne r3, r3, #PTE_EXT_XN |
154 | 154 | ||
155 | tst r1, #L_PTE_YOUNG | 155 | tst r1, #L_PTE_YOUNG |
156 | tstne r1, #L_PTE_PRESENT | 156 | tstne r1, #L_PTE_PRESENT |