diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-07-29 10:12:25 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-29 10:12:25 -0400 |
commit | c170f86e31410cc38971c1dedd8b25885e6e43b6 (patch) | |
tree | 7181e4e47b8667a3604d1aec92c0728fae011be6 /arch | |
parent | 51f3547d619956e9b428bfff17004d8f4d259a02 (diff) |
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
Presently this is protected by a CONFIG_VSYSCALL ifdef so we don't
inadvertently trigger the creation of the gate VMA on CPUs where we don't
enable the vDSO, which is obviously not visible to userspace. Fix this up
by adding in an ifndef __KERNEL__ check at the same time.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/include/asm/auxvec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/auxvec.h b/arch/sh/include/asm/auxvec.h index a6b9d4f4859e..483effd65e00 100644 --- a/arch/sh/include/asm/auxvec.h +++ b/arch/sh/include/asm/auxvec.h | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | #define AT_FPUCW 18 /* Used FPU control word. */ | 13 | #define AT_FPUCW 18 /* Used FPU control word. */ |
14 | 14 | ||
15 | #ifdef CONFIG_VSYSCALL | 15 | #if defined(CONFIG_VSYSCALL) || !defined(__KERNEL__) |
16 | /* | 16 | /* |
17 | * Only define this in the vsyscall case, the entry point to | 17 | * Only define this in the vsyscall case, the entry point to |
18 | * the vsyscall page gets placed here. The kernel will attempt | 18 | * the vsyscall page gets placed here. The kernel will attempt |