aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/shared/common-offsets.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-08-17 13:48:37 -0400
committerH. Peter Anvin <hpa@zytor.com>2008-10-23 01:55:19 -0400
commit8569c9140bd41089f9b6be8837ca421102714a90 (patch)
treecd289b322b215fe2ca2530aa320febfd99388d7f /arch/um/include/shared/common-offsets.h
parent2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff)
x86, um: take arch/um/include/* out of the way
We can't just plop asm/* into it - userland helpers are built with it in search path and seeing asm/* show up there suddenly would be a bad idea. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/um/include/shared/common-offsets.h')
-rw-r--r--arch/um/include/shared/common-offsets.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/um/include/shared/common-offsets.h b/arch/um/include/shared/common-offsets.h
new file mode 100644
index 000000000000..b54bd35585c2
--- /dev/null
+++ b/arch/um/include/shared/common-offsets.h
@@ -0,0 +1,41 @@
1/* for use by sys-$SUBARCH/kernel-offsets.c */
2
3DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
4
5OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
6OFFSET(HOST_TASK_PID, task_struct, pid);
7
8DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
9DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
10DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
11DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
12
13DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
14DEFINE_STR(UM_KERN_ALERT, KERN_ALERT);
15DEFINE_STR(UM_KERN_CRIT, KERN_CRIT);
16DEFINE_STR(UM_KERN_ERR, KERN_ERR);
17DEFINE_STR(UM_KERN_WARNING, KERN_WARNING);
18DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE);
19DEFINE_STR(UM_KERN_INFO, KERN_INFO);
20DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG);
21DEFINE_STR(UM_KERN_CONT, KERN_CONT);
22
23DEFINE(UM_ELF_CLASS, ELF_CLASS);
24DEFINE(UM_ELFCLASS32, ELFCLASS32);
25DEFINE(UM_ELFCLASS64, ELFCLASS64);
26
27DEFINE(UM_NR_CPUS, NR_CPUS);
28
29DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
30DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
31
32/* For crypto assembler code. */
33DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
34
35DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
36
37DEFINE(UM_HZ, HZ);
38
39DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
40DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
41DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);