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->" : : )
15 #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
16 #error One of ARCH v10 and ARCH v32 must be true!
21 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
28 #ifdef CONFIG_ETRAX_ARCH_V32
33 #ifdef CONFIG_ETRAX_ARCH_V10
41 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
47 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
50 #ifdef CONFIG_ETRAX_ARCH_V10
57 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
60 DEFINE(LCLONE_VM
, CLONE_VM
);
61 DEFINE(LCLONE_UNTRACED
, CLONE_UNTRACED
);