]> Pileus Git - ~andy/linux/commitdiff
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 29 Jul 2008 14:12:25 +0000 (23:12 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 29 Jul 2008 14:12:25 +0000 (23:12 +0900)
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>
arch/sh/include/asm/auxvec.h

index a6b9d4f4859e36c9d9b0d6c09e57ce2afb176ab5..483effd65e004bfadbea95c0da0c96d28716db72 100644 (file)
@@ -12,7 +12,7 @@
  */
 #define AT_FPUCW               18      /* Used FPU control word.  */
 
-#ifdef CONFIG_VSYSCALL
+#if defined(CONFIG_VSYSCALL) || !defined(__KERNEL__)
 /*
  * Only define this in the vsyscall case, the entry point to
  * the vsyscall page gets placed here. The kernel will attempt