| 1 | /* for use by sys-$SUBARCH/kernel-offsets.c */ |
| 2 | |
| 3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); |
| 4 | |
| 5 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); |
| 6 | DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); |
| 7 | DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT); |
| 8 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); |
| 9 | |
| 10 | DEFINE_STR(UM_KERN_EMERG, KERN_EMERG); |
| 11 | DEFINE_STR(UM_KERN_ALERT, KERN_ALERT); |
| 12 | DEFINE_STR(UM_KERN_CRIT, KERN_CRIT); |
| 13 | DEFINE_STR(UM_KERN_ERR, KERN_ERR); |
| 14 | DEFINE_STR(UM_KERN_WARNING, KERN_WARNING); |
| 15 | DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE); |
| 16 | DEFINE_STR(UM_KERN_INFO, KERN_INFO); |
| 17 | DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG); |
| 18 | DEFINE_STR(UM_KERN_CONT, KERN_CONT); |
| 19 | |
| 20 | DEFINE(UM_ELF_CLASS, ELF_CLASS); |
| 21 | DEFINE(UM_ELFCLASS32, ELFCLASS32); |
| 22 | DEFINE(UM_ELFCLASS64, ELFCLASS64); |
| 23 | |
| 24 | DEFINE(UM_NR_CPUS, NR_CPUS); |
| 25 | |
| 26 | DEFINE(UM_GFP_KERNEL, GFP_KERNEL); |
| 27 | DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); |
| 28 | |
| 29 | /* For crypto assembler code. */ |
| 30 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); |
| 31 | |
| 32 | DEFINE(UM_THREAD_SIZE, THREAD_SIZE); |
| 33 | |
| 34 | DEFINE(UM_HZ, HZ); |
| 35 | |
| 36 | DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC); |
| 37 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); |
| 38 | DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); |
| 39 | |
| 40 | #ifdef CONFIG_PRINTK |
| 41 | DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK); |
| 42 | #endif |
| 43 | #ifdef CONFIG_NO_HZ |
| 44 | DEFINE(UML_CONFIG_NO_HZ, CONFIG_NO_HZ); |
| 45 | #endif |
| 46 | #ifdef CONFIG_UML_X86 |
| 47 | DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86); |
| 48 | #endif |
| 49 | #ifdef CONFIG_64BIT |
| 50 | DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT); |
| 51 | #endif |