ARC: Fix wrong access to "sp" member in user_regs_struct
PATCH 1/1 ARC: Fix wrong access to "sp" member in user_regs_struct
"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(-)
linux/arc/arch_regs.c +1 -1
@@ -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
Signature · 1 line
2.9.3
Dmitry V. Levin
AppliedPATCH 1/1 ARC: Fix wrong access to "sp" member in user_regs_struct
Quoted 13 lines · Eugeniy Paltsev
"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(-)linux/arc/arch_regs.c +0
-0
linux/arc/arch_regs.c line 4
Quoted 5 lines
linux/arc/arch_regs.c +1
-1@@ -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
Applied, thanks.
Signature · 8 lines
ldv -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-snps-arc/attachments/20170701/15bef5c5/attachment.sig>