From 5610aacaad0d779f48e13ebf9b55a3bbdb22c4d8 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 10 Mar 2017 19:26:54 +0000 Subject: [PATCH] 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. --- Makefile.am | 1 + linux/metag/arch_regs.c | 1 + linux/metag/arch_regs.h | 1 + 3 files changed, 3 insertions(+) create mode 100644 linux/metag/arch_regs.h diff --git a/Makefile.am b/Makefile.am index f522aae7..2ab8bcf1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/linux/metag/arch_regs.c b/linux/metag/arch_regs.c index e9f0d78a..5944723a 100644 --- a/linux/metag/arch_regs.c +++ b/linux/metag/arch_regs.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 diff --git a/linux/metag/arch_regs.h b/linux/metag/arch_regs.h new file mode 100644 index 00000000..3344c92b --- /dev/null +++ b/linux/metag/arch_regs.h @@ -0,0 +1 @@ +extern unsigned long *const metag_sp_ptr;