1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/kbuild.h>
3 #include <linux/sched.h>
4 #include <asm/thread_info.h>
7 * Generate definitions needed by assembly language modules.
8 * This code generates raw asm output which is post-processed to extract
9 * and format the required data.
12 #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
13 #error One of ARCH v10 and ARCH v32 must be true!
18 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
25 #ifdef CONFIG_ETRAX_ARCH_V32
30 #ifdef CONFIG_ETRAX_ARCH_V10
38 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
44 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
47 #ifdef CONFIG_ETRAX_ARCH_V10
54 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
57 DEFINE(LCLONE_VM
, CLONE_VM
);
58 DEFINE(LCLONE_UNTRACED
, CLONE_UNTRACED
);