Go to the documentation of this file. 1 #include <linux/sched.h>
2 #include <asm/thread_info.h>
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))