Linux 2.6.17.7
[linux/fpc-iii.git] / arch / um / include / sysdep-i386 / kernel-offsets.h
blob2c13de321f2fb330eb5dc162fe53bffca57f3bad
1 #include <linux/stddef.h>
2 #include <linux/sched.h>
3 #include <linux/elf.h>
4 #include <asm/mman.h>
6 #define DEFINE(sym, val) \
7 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
9 #define STR(x) #x
10 #define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : )
12 #define BLANK() asm volatile("\n->" : : )
14 #define OFFSET(sym, str, mem) \
15 DEFINE(sym, offsetof(struct str, mem));
17 void foo(void)
19 OFFSET(HOST_TASK_DEBUGREGS, task_struct, thread.arch.debugregs);
20 DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
21 #ifdef CONFIG_MODE_TT
22 OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid);
23 #endif
24 #include <common-offsets.h>