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