* [RESEND PATCH] arch/csky: Fix the compile error when use abiv1
@ 2020-02-10 6:59 Ma Jun
2020-02-11 8:37 ` Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Ma Jun @ 2020-02-10 6:59 UTC (permalink / raw)
To: ren_guo, ldv; +Cc: majun258, strace-devel, linux-csky
From: MaJun <majun258@linux.alibaba.com>
Fix the bug caused by csky_regs. Because this struct
has no member r1, only a1.
Signed-off-by: Ma Jun <majun258@linux.alibaba.com>
---
linux/csky/get_scno.c | 2 +-
linux/csky/set_scno.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux/csky/get_scno.c b/linux/csky/get_scno.c
index 9efb202..9d4397a 100644
--- a/linux/csky/get_scno.c
+++ b/linux/csky/get_scno.c
@@ -12,7 +12,7 @@ arch_get_scno(struct tcb *tcp)
#if defined(__CSKYABIV2__)
tcp->scno = csky_regs.regs[3];
#else
- tcp->scno = csky_regs.r1;
+ tcp->scno = csky_regs.a1;
#endif
return 1;
}
diff --git a/linux/csky/set_scno.c b/linux/csky/set_scno.c
index 655d108..c1e1c18 100644
--- a/linux/csky/set_scno.c
+++ b/linux/csky/set_scno.c
@@ -13,7 +13,7 @@ arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
#if defined(__CSKYABIV2__)
csky_regs.regs[3] = scno;
#else
- csky_regs.r1 = scno;
+ csky_regs.a1 = scno;
#endif
return set_regs(tcp->pid);
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] arch/csky: Fix the compile error when use abiv1
2020-02-10 6:59 [RESEND PATCH] arch/csky: Fix the compile error when use abiv1 Ma Jun
@ 2020-02-11 8:37 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2020-02-11 8:37 UTC (permalink / raw)
To: Ma Jun; +Cc: ren_guo, linux-csky, strace-devel
On Mon, Feb 10, 2020 at 02:59:48PM +0800, Ma Jun wrote:
> From: MaJun <majun258@linux.alibaba.com>
>
> Fix the bug caused by csky_regs. Because this struct
> has no member r1, only a1.
>
> Signed-off-by: Ma Jun <majun258@linux.alibaba.com>
> ---
> linux/csky/get_scno.c | 2 +-
> linux/csky/set_scno.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/linux/csky/get_scno.c b/linux/csky/get_scno.c
> index 9efb202..9d4397a 100644
> --- a/linux/csky/get_scno.c
> +++ b/linux/csky/get_scno.c
> @@ -12,7 +12,7 @@ arch_get_scno(struct tcb *tcp)
> #if defined(__CSKYABIV2__)
> tcp->scno = csky_regs.regs[3];
> #else
> - tcp->scno = csky_regs.r1;
> + tcp->scno = csky_regs.a1;
> #endif
> return 1;
> }
> diff --git a/linux/csky/set_scno.c b/linux/csky/set_scno.c
> index 655d108..c1e1c18 100644
> --- a/linux/csky/set_scno.c
> +++ b/linux/csky/set_scno.c
> @@ -13,7 +13,7 @@ arch_set_scno(struct tcb *tcp, kernel_ulong_t scno)
> #if defined(__CSKYABIV2__)
> csky_regs.regs[3] = scno;
> #else
> - csky_regs.r1 = scno;
> + csky_regs.a1 = scno;
> #endif
> return set_regs(tcp->pid);
> }
Applied, thanks.
--
ldv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-11 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 6:59 [RESEND PATCH] arch/csky: Fix the compile error when use abiv1 Ma Jun
2020-02-11 8:37 ` Dmitry V. Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).