| #include <asm/thread_info.h> |
| * Generate definitions needed by assembly language modules. |
| * This code generates raw asm output which is post-processed to extract |
| * and format the required data. |
| #define DEFINE(sym, val) \ |
| asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
| #define BLANK() asm volatile("\n->" : : ) |
| #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32) |
| #error One of ARCH v10 and ARCH v32 must be true! |
| #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry)) |
| #ifdef CONFIG_ETRAX_ARCH_V32 |
| #ifdef CONFIG_ETRAX_ARCH_V10 |
| #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry)) |
| #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry)) |
| #ifdef CONFIG_ETRAX_ARCH_V10 |
| #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry)) |
| DEFINE(LCLONE_VM, CLONE_VM); |
| DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED); |