1 #include <linux/kbuild.h>
2 #include <linux/sched.h>
3 #include <asm/thread_info.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 #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
12 #error One of ARCH v10 and ARCH v32 must be true!
17 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
24 #ifdef CONFIG_ETRAX_ARCH_V32
29 #ifdef CONFIG_ETRAX_ARCH_V10
37 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
43 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
46 #ifdef CONFIG_ETRAX_ARCH_V10
53 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
56 DEFINE(LCLONE_VM
, CLONE_VM
);
57 DEFINE(LCLONE_UNTRACED
, CLONE_UNTRACED
);