blob: 72009c7e3210a036cbbef0b688bd08718eacbb59 [file] [log] [blame]
Al Viroa31769e2005-05-05 16:15:25 -07001/* for use by sys-$SUBARCH/kernel-offsets.c */
2
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -07003DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -07004
Al Viroecba97d2005-09-28 22:27:23 +01005OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
6OFFSET(HOST_TASK_PID, task_struct, pid);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -07007
Al Viroa31769e2005-05-05 16:15:25 -07008DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
Jeff Dikec539ab732007-06-16 10:16:09 -07009DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
Jeff Dike71f926f2007-10-16 01:26:44 -070010DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
Al Viroa31769e2005-05-05 16:15:25 -070011DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070012
Al Viroa31769e2005-05-05 16:15:25 -070013DEFINE_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);
Karol Swietlicki235a6f02008-02-04 22:30:38 -080021DEFINE_STR(UM_KERN_CONT, KERN_CONT);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070022
Paolo 'Blaisorblade' Giarrusso41c79dc2005-09-21 18:39:47 +020023DEFINE(UM_ELF_CLASS, ELF_CLASS);
24DEFINE(UM_ELFCLASS32, ELFCLASS32);
25DEFINE(UM_ELFCLASS64, ELFCLASS64);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070026
Jeff Dike377fad32007-05-06 14:51:25 -070027DEFINE(UM_NR_CPUS, NR_CPUS);
28
Jeff Dikee4c4bf992007-07-15 23:38:56 -070029DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
30DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
31
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070032/* For crypto assembler code. */
Paolo 'Blaisorblade' Giarrusso2465b852006-10-11 01:21:38 -070033DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
Jeff Dike57598fd2007-05-10 22:22:30 -070034
35DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
Jeff Dike532d0fa2007-10-16 01:27:21 -070036
37DEFINE(UM_HZ, HZ);
Jeff Dike1a805212007-10-16 01:27:28 -070038
39DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
40DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
41DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
Al Viro87e299e2008-10-11 18:39:18 -040042
43#ifdef CONFIG_PRINTK
44DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
45#endif
46#ifdef CONFIG_NO_HZ
47DEFINE(UML_CONFIG_NO_HZ, CONFIG_NO_HZ);
48#endif
49#ifdef CONFIG_UML_X86
50DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
51#endif
52#ifdef CONFIG_64BIT
53DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
54#endif