2 * Generate definitions needed by assembly language modules.
3 * This code generates raw asm output which is post-processed to extract
4 * and format the required data.
7 #include <linux/sched.h>
8 #include <linux/stddef.h>
9 #include <linux/errno.h>
10 #include <linux/hardirq.h>
11 #include <linux/suspend.h>
13 #include <asm/processor.h>
14 #include <asm/segment.h>
15 #include <asm/thread_info.h>
18 #define DEFINE(sym, val) \
19 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
21 #define BLANK() asm volatile("\n->" : : )
25 #define ENTRY(entry) DEFINE(tsk_ ## entry, offsetof(struct task_struct, entry))
32 #define ENTRY(entry) DEFINE(threadinfo_ ## entry, offsetof(struct thread_info, entry))
39 #define ENTRY(entry) DEFINE(pda_ ## entry, offsetof(struct x8664_pda, entry))
49 #ifdef CONFIG_IA32_EMULATION
50 #define ENTRY(entry) DEFINE(IA32_SIGCONTEXT_ ## entry, offsetof(struct sigcontext_ia32, entry))
62 DEFINE(IA32_RT_SIGFRAME_sigcontext
,
63 offsetof (struct rt_sigframe32
, uc
.uc_mcontext
));
66 DEFINE(pbe_address
, offsetof(struct pbe
, address
));
67 DEFINE(pbe_orig_address
, offsetof(struct pbe
, orig_address
));
68 DEFINE(pbe_next
, offsetof(struct pbe
, next
));
70 DEFINE(TSS_ist
, offsetof(struct tss_struct
, ist
));