History

[PATCH] x86_64: Implement is_compat_task the right way

By setting a flag during a 32bit system call only

Andi Kleen committed 20 years ago

Commit bf2fcc61 parent 29663876 files · +16 −1Browse files

Showing the changes to drivers/input/evdev.c (1 of 6 files). Show all

Unified · Split

drivers/input/evdev.c+3−1
@@ -154,8 +154,10 @@ struct input_event_compat { · 153 unmodified lines
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_64159#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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t