nios2: export nios2_sp_ptr

Export SP register for later use by get_rt_sigframe_addr.

* linux/nios2/arch_regs.h: New file.
* Makefile.am (EXTRA_DIST): Add it.
* linux/nios2/arch_regs.c (nios2_sp_ptr): New variable.
This commit is contained in:
Дмитрий Левин 2017-03-10 19:45:06 +00:00
parent 5610aacaad
commit 6117728aac
3 changed files with 3 additions and 0 deletions

View File

@ -512,6 +512,7 @@ EXTRA_DIST = \
linux/mtd-abi.h \
linux/netlink_diag.h \
linux/nios2/arch_regs.c \
linux/nios2/arch_regs.h \
linux/nios2/get_error.c \
linux/nios2/get_scno.c \
linux/nios2/get_syscall_args.c \

View File

@ -1,3 +1,4 @@
static struct user_pt_regs nios2_regs;
unsigned long *const nios2_sp_ptr = &nios2_regs.sp;
# define ARCH_REGS_FOR_GETREGSET nios2_regs
#define ARCH_PC_REG nios2_regs.regs[PTR_EA]

1
linux/nios2/arch_regs.h Normal file
View File

@ -0,0 +1 @@
extern unsigned long *const nios2_sp_ptr;