Skip to content

Commit

Permalink
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jul 29, 2008
1 parent 51f3547 commit c170f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/include/asm/auxvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c170f86

Please sign in to comment.