diff options
author | Andi Kleen <ak@suse.de> | 2006-01-11 16:44:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:53 -0500 |
commit | bf2fcc6fdfe4f4e92bb74f062c0a1be189f3a561 (patch) | |
tree | 0bcc33f681c7e8ce6596c9323d4a1026ede84994 /drivers | |
parent | 2966387b481a11a90a7bed6600fc17b4253f6980 (diff) |
[PATCH] x86_64: Implement is_compat_task the right way
By setting a flag during a 32bit system call only
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/evdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index f7490a015d18..362b33556b1a 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
@@ -154,8 +154,10 @@ struct input_event_compat { | |||
154 | __s32 value; | 154 | __s32 value; |
155 | }; | 155 | }; |
156 | 156 | ||
157 | /* Note to the author of this code: did it ever occur to | ||
158 | you why the ifdefs are needed? Think about it again. -AK */ | ||
157 | #ifdef CONFIG_X86_64 | 159 | #ifdef CONFIG_X86_64 |
158 | # define COMPAT_TEST test_thread_flag(TIF_IA32) | 160 | # define COMPAT_TEST is_compat_task() |
159 | #elif defined(CONFIG_IA64) | 161 | #elif defined(CONFIG_IA64) |
160 | # define COMPAT_TEST IS_IA32_PROCESS(ia64_task_regs(current)) | 162 | # define COMPAT_TEST IS_IA32_PROCESS(ia64_task_regs(current)) |
161 | #elif defined(CONFIG_S390) | 163 | #elif defined(CONFIG_S390) |