1 #include <linux/stddef.h>
2 #include <linux/sched.h>
5 #define DEFINE(sym, val) \
6 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
9 #define DEFINE_STR(sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : )
11 #define BLANK() asm volatile("\n->" : : )
13 #define OFFSET(sym, str, mem) \
14 DEFINE(sym, offsetof(struct str, mem));
18 OFFSET(HOST_TASK_DEBUGREGS
, task_struct
, thread
.arch
.debugregs
);
20 OFFSET(HOST_TASK_EXTERN_PID
, task_struct
, thread
.mode
.tt
.extern_pid
);
22 #include <common-offsets.h>