diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-03-10 19:52:11 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-03-10 19:52:11 +0000 |
commit | 6d32a2ee9313c965865c00a1141cd600f8c49b0d (patch) | |
tree | e5e5e62ea4203400493f8d081646ea185ef0f28d | |
parent | 6117728aacf431a3e3c05761766c776874cc0861 (diff) | |
download | strace-6d32a2ee9313c965865c00a1141cd600f8c49b0d.tar.gz |
or1k: export or1k_sp_ptr
Export SP register for later use by get_rt_sigframe_addr.
* linux/or1k/arch_regs.h: New file.
* Makefile.am (EXTRA_DIST): Add it.
* linux/or1k/arch_regs.c (or1k_sp_ptr): New variable.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | linux/or1k/arch_regs.c | 1 | ||||
-rw-r--r-- | linux/or1k/arch_regs.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index c7134e4cc..e827d59b8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -522,6 +522,7 @@ EXTRA_DIST = \ linux/nios2/set_scno.c \ linux/nios2/syscallent.h \ linux/or1k/arch_regs.c \ + linux/or1k/arch_regs.h \ linux/or1k/get_error.c \ linux/or1k/get_scno.c \ linux/or1k/get_syscall_args.c \ diff --git a/linux/or1k/arch_regs.c b/linux/or1k/arch_regs.c index 78693e5ae..80ce7639d 100644 --- a/linux/or1k/arch_regs.c +++ b/linux/or1k/arch_regs.c @@ -1,3 +1,4 @@ static struct user_regs_struct or1k_regs; +unsigned long *const or1k_sp_ptr = &or1k_regs.gpr[1]; #define ARCH_REGS_FOR_GETREGSET or1k_regs #define ARCH_PC_REG or1k_regs.pc diff --git a/linux/or1k/arch_regs.h b/linux/or1k/arch_regs.h new file mode 100644 index 000000000..44a78ec5d --- /dev/null +++ b/linux/or1k/arch_regs.h @@ -0,0 +1 @@ +extern unsigned long *const or1k_sp_ptr; |