metag: export metag_sp_ptr

Export SP register for later use by get_rt_sigframe_addr.

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

View File

@ -468,6 +468,7 @@ EXTRA_DIST = \
linux/m68k/syscallent.h \
linux/m68k/userent.h \
linux/metag/arch_regs.c \
linux/metag/arch_regs.h \
linux/metag/get_error.c \
linux/metag/get_scno.c \
linux/metag/get_syscall_args.c \

View File

@ -1,3 +1,4 @@
static struct user_gp_regs metag_regs;
unsigned long *const metag_sp_ptr = &metag_regs.ax[0][0];
#define ARCH_REGS_FOR_GETREGSET metag_regs
#define ARCH_PC_REG metag_regs.pc

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

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