[PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct
Dmitry V. Levin
ldv at altlinux.org
Sat Jul 1 03:47:44 PDT 2017
On Fri, Jun 30, 2017 at 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>
More information about the linux-snps-arc
mailing list