diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2013-06-17 10:29:12 -0700 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-11 09:53:18 +0000 |
commit | 27ec8da4ace46900a71b8462157aa2bc88ff5d2c (patch) | |
tree | 6c60a78a829f5758167c577a004d2cf15a650e3b /arch/arm/include/asm/pgtable.h | |
parent | ebd4922ecc38e31e662cd641dd04099a9652c9b3 (diff) | |
download | blackbird-op-linux-27ec8da4ace46900a71b8462157aa2bc88ff5d2c.tar.gz blackbird-op-linux-27ec8da4ace46900a71b8462157aa2bc88ff5d2c.zip |
ARM: add definitions for pte_mkexec/pte_mknexec
Other architectures define pte_mkexec to mark a pte as executable.
Add pte_mkexec for ARM to get the same functionality. Although no
other architectures currently define it, also add pte_mknexec to
explicitly allow a pte to be marked as non executable.
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable.h')
-rw-r--r-- | arch/arm/include/asm/pgtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index be956dbf6bae..910d2741c031 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -254,6 +254,8 @@ PTE_BIT_FUNC(mkclean, &= ~L_PTE_DIRTY); PTE_BIT_FUNC(mkdirty, |= L_PTE_DIRTY); PTE_BIT_FUNC(mkold, &= ~L_PTE_YOUNG); PTE_BIT_FUNC(mkyoung, |= L_PTE_YOUNG); +PTE_BIT_FUNC(mkexec, &= ~L_PTE_XN); +PTE_BIT_FUNC(mknexec, |= L_PTE_XN); static inline pte_t pte_mkspecial(pte_t pte) { return pte; } |