diff options
-rw-r--r-- | arch/um/include/shared/common-offsets.h | 1 | ||||
-rw-r--r-- | arch/um/include/shared/task.h | 9 | ||||
-rw-r--r-- | arch/x86/um/bugs_32.c | 4 |
3 files changed, 3 insertions, 11 deletions
diff --git a/arch/um/include/shared/common-offsets.h b/arch/um/include/shared/common-offsets.h index 72009c7e3210..d7fe563aa7e7 100644 --- a/arch/um/include/shared/common-offsets.h +++ b/arch/um/include/shared/common-offsets.h | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); | 3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); |
4 | 4 | ||
5 | OFFSET(HOST_TASK_REGS, task_struct, thread.regs); | ||
6 | OFFSET(HOST_TASK_PID, task_struct, pid); | 5 | OFFSET(HOST_TASK_PID, task_struct, pid); |
7 | 6 | ||
8 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); | 7 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); |
diff --git a/arch/um/include/shared/task.h b/arch/um/include/shared/task.h deleted file mode 100644 index 3db6b58b505e..000000000000 --- a/arch/um/include/shared/task.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef __TASK_H | ||
2 | #define __TASK_H | ||
3 | |||
4 | #include <generated/asm-offsets.h> | ||
5 | |||
6 | #define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS])) | ||
7 | #define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID])) | ||
8 | |||
9 | #endif | ||
diff --git a/arch/x86/um/bugs_32.c b/arch/x86/um/bugs_32.c index 7058e1fa903b..a1fba5fb9dbe 100644 --- a/arch/x86/um/bugs_32.c +++ b/arch/x86/um/bugs_32.c | |||
@@ -6,13 +6,15 @@ | |||
6 | #include <signal.h> | 6 | #include <signal.h> |
7 | #include "kern_util.h" | 7 | #include "kern_util.h" |
8 | #include "longjmp.h" | 8 | #include "longjmp.h" |
9 | #include "task.h" | ||
10 | #include "sysdep/ptrace.h" | 9 | #include "sysdep/ptrace.h" |
10 | #include <generated/asm-offsets.h> | ||
11 | 11 | ||
12 | /* Set during early boot */ | 12 | /* Set during early boot */ |
13 | static int host_has_cmov = 1; | 13 | static int host_has_cmov = 1; |
14 | static jmp_buf cmov_test_return; | 14 | static jmp_buf cmov_test_return; |
15 | 15 | ||
16 | #define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID])) | ||
17 | |||
16 | static void cmov_sigill_test_handler(int sig) | 18 | static void cmov_sigill_test_handler(int sig) |
17 | { | 19 | { |
18 | host_has_cmov = 0; | 20 | host_has_cmov = 0; |