Al Viro | a31769e | 2005-05-05 16:15:25 -0700 | [diff] [blame] | 1 | /* for use by sys-$SUBARCH/kernel-offsets.c */ |
| 2 | |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 3 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 4 | |
Al Viro | ecba97d | 2005-09-28 22:27:23 +0100 | [diff] [blame] | 5 | OFFSET(HOST_TASK_REGS, task_struct, thread.regs); |
| 6 | OFFSET(HOST_TASK_PID, task_struct, pid); |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 7 | |
Al Viro | a31769e | 2005-05-05 16:15:25 -0700 | [diff] [blame] | 8 | DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); |
Jeff Dike | c539ab73 | 2007-06-16 10:16:09 -0700 | [diff] [blame] | 9 | DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK); |
Jeff Dike | 71f926f | 2007-10-16 01:26:44 -0700 | [diff] [blame] | 10 | DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT); |
Al Viro | a31769e | 2005-05-05 16:15:25 -0700 | [diff] [blame] | 11 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 12 | |
Al Viro | a31769e | 2005-05-05 16:15:25 -0700 | [diff] [blame] | 13 | DEFINE_STR(UM_KERN_EMERG, KERN_EMERG); |
| 14 | DEFINE_STR(UM_KERN_ALERT, KERN_ALERT); |
| 15 | DEFINE_STR(UM_KERN_CRIT, KERN_CRIT); |
| 16 | DEFINE_STR(UM_KERN_ERR, KERN_ERR); |
| 17 | DEFINE_STR(UM_KERN_WARNING, KERN_WARNING); |
| 18 | DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE); |
| 19 | DEFINE_STR(UM_KERN_INFO, KERN_INFO); |
| 20 | DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG); |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 21 | |
Paolo 'Blaisorblade' Giarrusso | 41c79dc | 2005-09-21 18:39:47 +0200 | [diff] [blame] | 22 | DEFINE(UM_ELF_CLASS, ELF_CLASS); |
| 23 | DEFINE(UM_ELFCLASS32, ELFCLASS32); |
| 24 | DEFINE(UM_ELFCLASS64, ELFCLASS64); |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 25 | |
Jeff Dike | 377fad3 | 2007-05-06 14:51:25 -0700 | [diff] [blame] | 26 | DEFINE(UM_NR_CPUS, NR_CPUS); |
| 27 | |
Jeff Dike | e4c4bf99 | 2007-07-15 23:38:56 -0700 | [diff] [blame] | 28 | DEFINE(UM_GFP_KERNEL, GFP_KERNEL); |
| 29 | DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC); |
| 30 | |
Paolo 'Blaisorblade' Giarrusso | d27ecef | 2006-10-11 01:21:40 -0700 | [diff] [blame] | 31 | /* For crypto assembler code. */ |
Paolo 'Blaisorblade' Giarrusso | 2465b85 | 2006-10-11 01:21:38 -0700 | [diff] [blame] | 32 | DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); |
Jeff Dike | 57598fd | 2007-05-10 22:22:30 -0700 | [diff] [blame] | 33 | |
| 34 | DEFINE(UM_THREAD_SIZE, THREAD_SIZE); |
Jeff Dike | 532d0fa | 2007-10-16 01:27:21 -0700 | [diff] [blame] | 35 | |
| 36 | DEFINE(UM_HZ, HZ); |
Jeff Dike | 1a80521 | 2007-10-16 01:27:28 -0700 | [diff] [blame] | 37 | |
| 38 | DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC); |
| 39 | DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); |
| 40 | DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC); |