projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45dabf1
)
sh: Prevent leaking of CONFIG_SUPERH32 to userspace in asm/unistd.h.
author
Khem Raj
<raj.khem@gmail.com>
Thu, 3 Jul 2008 10:02:41 +0000
(19:02 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 28 Jul 2008 09:10:27 +0000
(18:10 +0900)
CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached
patch uses __SH5__ define in userspace.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/unistd.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-sh/unistd.h
b/include/asm-sh/unistd.h
index 4b21f369c28cfac51532d3e1a82c7d860c883893..65be656ead7d037a03476ce335b6aec7d90049bd 100644
(file)
--- a/
include/asm-sh/unistd.h
+++ b/
include/asm-sh/unistd.h
@@
-1,5
+1,13
@@
-#ifdef CONFIG_SUPERH32
-# include "unistd_32.h"
+#ifdef __KERNEL__
+# ifdef CONFIG_SUPERH32
+# include "unistd_32.h"
+# else
+# include "unistd_64.h"
+# endif
#else
#else
-# include "unistd_64.h"
+# ifdef __SH5__
+# include "unistd_64.h"
+# else
+# include "unistd_32.h"
+# endif
#endif
#endif
This page took
0.02562 seconds
and
5
git commands to generate.