diff options
Diffstat (limited to 'arch/um/include/common-offsets.h')
-rw-r--r-- | arch/um/include/common-offsets.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h index 6eee343e53eb..0edab695ed4e 100644 --- a/arch/um/include/common-offsets.h +++ b/arch/um/include/common-offsets.h | |||
@@ -1,15 +1,13 @@ | |||
1 | /* for use by sys-$SUBARCH/kernel-offsets.c */ | 1 | /* for use by sys-$SUBARCH/kernel-offsets.c */ |
2 | 2 | ||
3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); | 3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); |
4 | #ifdef CONFIG_MODE_TT | ||
5 | OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid); | ||
6 | #endif | ||
7 | 4 | ||
8 | OFFSET(HOST_TASK_REGS, task_struct, thread.regs); | 5 | OFFSET(HOST_TASK_REGS, task_struct, thread.regs); |
9 | OFFSET(HOST_TASK_PID, task_struct, pid); | 6 | OFFSET(HOST_TASK_PID, task_struct, pid); |
10 | 7 | ||
11 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); | 8 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); |
12 | DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); | 9 | DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); |
10 | DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT); | ||
13 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); | 11 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); |
14 | 12 | ||
15 | DEFINE_STR(UM_KERN_EMERG, KERN_EMERG); | 13 | DEFINE_STR(UM_KERN_EMERG, KERN_EMERG); |
@@ -34,3 +32,9 @@ DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); | |||
34 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); | 32 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); |
35 | 33 | ||
36 | DEFINE(UM_THREAD_SIZE, THREAD_SIZE); | 34 | DEFINE(UM_THREAD_SIZE, THREAD_SIZE); |
35 | |||
36 | DEFINE(UM_HZ, HZ); | ||
37 | |||
38 | DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC); | ||
39 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); | ||
40 | DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); | ||