* [PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct
@ 2017-06-30 13:14 Eugeniy Paltsev
2017-07-01 10:47 ` Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Eugeniy Paltsev @ 2017-06-30 13:14 UTC (permalink / raw)
To: linux-snps-arc
"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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct
2017-06-30 13:14 [PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct Eugeniy Paltsev
@ 2017-07-01 10:47 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2017-07-01 10:47 UTC (permalink / raw)
To: linux-snps-arc
On Fri, Jun 30, 2017@04:14:14PM +0300, Eugeniy Paltsev wrote:
> "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
Applied, thanks.
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-01 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-30 13:14 [PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct Eugeniy Paltsev
2017-07-01 10:47 ` Dmitry V. Levin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.