1 #include <linux/sched.h>
2 #include <asm/thread_info.h>
5 * Generate definitions needed by assembly language modules.
6 * This code generates raw asm output which is post-processed to extract
7 * and format the required data.
10 #define DEFINE(sym, val) \
11 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
13 #define BLANK() asm volatile("\n->" : : )
17 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
31 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
37 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
43 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
46 DEFINE(LCLONE_VM, CLONE_VM);
47 DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED);