[PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct

Eugeniy Paltsev Eugeniy.Paltsev at synopsys.com
Fri Jun 30 13:14:14 UTC 2017


"sp" register is member of "scratch" structure (which is nested
in user_regs_struct)

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
---
 linux/arc/arch_regs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux/arc/arch_regs.c b/linux/arc/arch_regs.c
index 9a5c2df..88bb799 100644
--- a/linux/arc/arch_regs.c
+++ b/linux/arc/arch_regs.c
@@ -1,4 +1,4 @@
 static struct user_regs_struct arc_regs;
-unsigned long *const arc_sp_ptr = &arc_regs.sp;
+unsigned long *const arc_sp_ptr = &arc_regs.scratch.sp;
 #define ARCH_REGS_FOR_GETREGSET arc_regs
 #define ARCH_PC_REG arc_regs.efa
-- 
2.9.3





More information about the Strace-devel mailing list