diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-02-09 12:24:35 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-02-09 12:24:40 -0500 |
commit | 146e4b3c8b92071b18f0b2e6f47165bad4f9e825 (patch) | |
tree | 7e9db61cacca0f55ce34db089f27fc22a56ebbdd /include/asm-s390/elf.h | |
parent | 0c1f1dcd8c7792aeff6ef62e9508b0041928ab87 (diff) |
[S390] 1K/2K page table pages.
This patch implements 1K/2K page table pages for s390.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/elf.h')
-rw-r--r-- | include/asm-s390/elf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-s390/elf.h b/include/asm-s390/elf.h index b73a424d0f97..8181ca5b98f4 100644 --- a/include/asm-s390/elf.h +++ b/include/asm-s390/elf.h | |||
@@ -115,6 +115,7 @@ typedef s390_regs elf_gregset_t; | |||
115 | 115 | ||
116 | #include <linux/sched.h> /* for task_struct */ | 116 | #include <linux/sched.h> /* for task_struct */ |
117 | #include <asm/system.h> /* for save_access_regs */ | 117 | #include <asm/system.h> /* for save_access_regs */ |
118 | #include <asm/mmu_context.h> | ||
118 | 119 | ||
119 | /* | 120 | /* |
120 | * This is used to ensure we don't load something for the wrong architecture. | 121 | * This is used to ensure we don't load something for the wrong architecture. |
@@ -214,4 +215,16 @@ do { \ | |||
214 | } while (0) | 215 | } while (0) |
215 | #endif /* __s390x__ */ | 216 | #endif /* __s390x__ */ |
216 | 217 | ||
218 | /* | ||
219 | * An executable for which elf_read_implies_exec() returns TRUE will | ||
220 | * have the READ_IMPLIES_EXEC personality flag set automatically. | ||
221 | */ | ||
222 | #define elf_read_implies_exec(ex, executable_stack) \ | ||
223 | ({ \ | ||
224 | if (current->mm->context.noexec && \ | ||
225 | executable_stack != EXSTACK_DISABLE_X) \ | ||
226 | disable_noexec(current->mm, current); \ | ||
227 | current->mm->context.noexec == 0; \ | ||
228 | }) | ||
229 | |||
217 | #endif | 230 | #endif |