1 #include <linux/sched.h>
2 #include <asm/thread_info.h>
3 #include <linux/autoconf.h>
6 * Generate definitions needed by assembly language modules.
7 * This code generates raw asm output which is post-processed to extract
8 * and format the required data.
11 #define DEFINE(sym, val) \
12 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
14 #define BLANK() asm volatile("\n->" : : )
16 #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
17 #error One of ARCH v10 and ARCH v32 must be true!
22 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
29 #ifdef CONFIG_ETRAX_ARCH_V32
34 #ifdef CONFIG_ETRAX_ARCH_V10
42 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
48 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
51 #ifdef CONFIG_ETRAX_ARCH_V10
58 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
61 DEFINE(LCLONE_VM, CLONE_VM);
62 DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED);