blob: c9230680902990e7436be151510f4e6fcf368388 [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 Viroa31769e2005-05-05 16:15:25 -07005DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
Jeff Dikec539ab72007-06-16 10:16:09 -07006DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
Jeff Dike71f926f2007-10-16 01:26:44 -07007DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
Al Viroa31769e2005-05-05 16:15:25 -07008DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -07009
Paolo 'Blaisorblade' Giarrusso41c79dc2005-09-21 18:39:47 +020010DEFINE(UM_ELF_CLASS, ELF_CLASS);
11DEFINE(UM_ELFCLASS32, ELFCLASS32);
12DEFINE(UM_ELFCLASS64, ELFCLASS64);
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070013
Jeff Dike377fad32007-05-06 14:51:25 -070014DEFINE(UM_NR_CPUS, NR_CPUS);
15
Jeff Dikee4c4bf92007-07-15 23:38:56 -070016DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
17DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
18
Paolo 'Blaisorblade' Giarrussod27ecef2006-10-11 01:21:40 -070019/* For crypto assembler code. */
Paolo 'Blaisorblade' Giarrusso2465b852006-10-11 01:21:38 -070020DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
Jeff Dike57598fd2007-05-10 22:22:30 -070021
22DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
Jeff Dike532d0fa2007-10-16 01:27:21 -070023
24DEFINE(UM_HZ, HZ);
Jeff Dike1a805212007-10-16 01:27:28 -070025
26DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
27DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
28DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
Al Viro87e299e2008-10-11 18:39:18 -040029
30#ifdef CONFIG_PRINTK
31DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
32#endif
Frederic Weisbecker3451d022011-08-10 23:21:01 +020033#ifdef CONFIG_NO_HZ_COMMON
34DEFINE(UML_CONFIG_NO_HZ_COMMON, CONFIG_NO_HZ_COMMON);
Al Viro87e299e2008-10-11 18:39:18 -040035#endif
36#ifdef CONFIG_UML_X86
37DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
38#endif
39#ifdef CONFIG_64BIT
40DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
41#endif