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:
parent
5610aacaad
commit
6117728aac
@ -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 \
|
||||
|
@ -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
1
linux/nios2/arch_regs.h
Normal file
@ -0,0 +1 @@
|
||||
extern unsigned long *const nios2_sp_ptr;
|
Loading…
Reference in New Issue
Block a user