1/* for use by sys-$SUBARCH/kernel-offsets.c */ 2 3DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); 4 5DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); 6DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); 7DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT); 8DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); 9 10DEFINE(UM_ELF_CLASS, ELF_CLASS); 11DEFINE(UM_ELFCLASS32, ELFCLASS32); 12DEFINE(UM_ELFCLASS64, ELFCLASS64); 13 14DEFINE(UM_NR_CPUS, NR_CPUS); 15 16DEFINE(UM_GFP_KERNEL, GFP_KERNEL); 17DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); 18 19/* For crypto assembler code. */ 20DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); 21 22DEFINE(UM_THREAD_SIZE, THREAD_SIZE); 23 24DEFINE(UM_HZ, HZ); 25 26DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC); 27DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); 28DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); 29 30#ifdef CONFIG_PRINTK 31DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK); 32#endif 33#ifdef CONFIG_NO_HZ_COMMON 34DEFINE(UML_CONFIG_NO_HZ_COMMON, CONFIG_NO_HZ_COMMON); 35#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 42