* [PATCH] riscv: replace deprecated scall with ecall
@ 2023-04-23 22:32 Fangrui Song
2023-05-11 22:41 ` Fangrui Song
2023-06-20 19:40 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 5+ messages in thread
From: Fangrui Song @ 2023-04-23 22:32 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
Cc: linux-kernel, Fangrui Song
scall is a deprecated alias for ecall. ecall is used in several places,
so there is no assembler compatibility concern.
Signed-off-by: Fangrui Song <maskray@google.com>
---
arch/riscv/kernel/entry.S | 4 ++--
arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S
index 99d38fdf8b18..2f51935612d1 100644
--- a/arch/riscv/kernel/entry.S
+++ b/arch/riscv/kernel/entry.S
@@ -191,7 +191,7 @@ handle_syscall:
REG_S a0, PT_ORIG_A0(sp)
/*
* Advance SEPC to avoid executing the original
- * scall instruction on sret
+ * ecall instruction on sret
*/
addi s2, s2, 0x4
REG_S s2, PT_EPC(sp)
@@ -603,6 +603,6 @@ END(excp_vect_table)
#ifndef CONFIG_MMU
ENTRY(__user_rt_sigreturn)
li a7, __NR_rt_sigreturn
- scall
+ ecall
END(__user_rt_sigreturn)
#endif
diff --git a/arch/riscv/kernel/vdso/rt_sigreturn.S b/arch/riscv/kernel/vdso/rt_sigreturn.S
index 0573705eac76..10438c7c626a 100644
--- a/arch/riscv/kernel/vdso/rt_sigreturn.S
+++ b/arch/riscv/kernel/vdso/rt_sigreturn.S
@@ -11,6 +11,6 @@ ENTRY(__vdso_rt_sigreturn)
.cfi_startproc
.cfi_signal_frame
li a7, __NR_rt_sigreturn
- scall
+ ecall
.cfi_endproc
ENDPROC(__vdso_rt_sigreturn)
--
2.40.0.634.g4ca3ef3211-goog
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: replace deprecated scall with ecall
2023-04-23 22:32 [PATCH] riscv: replace deprecated scall with ecall Fangrui Song
@ 2023-05-11 22:41 ` Fangrui Song
2023-06-13 21:51 ` Fangrui Song
2023-06-20 19:40 ` patchwork-bot+linux-riscv
1 sibling, 1 reply; 5+ messages in thread
From: Fangrui Song @ 2023-05-11 22:41 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv; +Cc: linux-kernel
On Sun, Apr 23, 2023 at 3:32 PM Fangrui Song <maskray@google.com> wrote:
>
> scall is a deprecated alias for ecall. ecall is used in several places,
> so there is no assembler compatibility concern.
>
> Signed-off-by: Fangrui Song <maskray@google.com>
> ---
> arch/riscv/kernel/entry.S | 4 ++--
> arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S
> index 99d38fdf8b18..2f51935612d1 100644
> --- a/arch/riscv/kernel/entry.S
> +++ b/arch/riscv/kernel/entry.S
> @@ -191,7 +191,7 @@ handle_syscall:
> REG_S a0, PT_ORIG_A0(sp)
> /*
> * Advance SEPC to avoid executing the original
> - * scall instruction on sret
> + * ecall instruction on sret
> */
> addi s2, s2, 0x4
> REG_S s2, PT_EPC(sp)
> @@ -603,6 +603,6 @@ END(excp_vect_table)
> #ifndef CONFIG_MMU
> ENTRY(__user_rt_sigreturn)
> li a7, __NR_rt_sigreturn
> - scall
> + ecall
> END(__user_rt_sigreturn)
> #endif
> diff --git a/arch/riscv/kernel/vdso/rt_sigreturn.S b/arch/riscv/kernel/vdso/rt_sigreturn.S
> index 0573705eac76..10438c7c626a 100644
> --- a/arch/riscv/kernel/vdso/rt_sigreturn.S
> +++ b/arch/riscv/kernel/vdso/rt_sigreturn.S
> @@ -11,6 +11,6 @@ ENTRY(__vdso_rt_sigreturn)
> .cfi_startproc
> .cfi_signal_frame
> li a7, __NR_rt_sigreturn
> - scall
> + ecall
> .cfi_endproc
> ENDPROC(__vdso_rt_sigreturn)
> --
> 2.40.0.634.g4ca3ef3211-goog
>
Ping:)
--
宋方睿
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: replace deprecated scall with ecall
2023-05-11 22:41 ` Fangrui Song
@ 2023-06-13 21:51 ` Fangrui Song
2023-06-20 19:30 ` Palmer Dabbelt
0 siblings, 1 reply; 5+ messages in thread
From: Fangrui Song @ 2023-06-13 21:51 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv; +Cc: linux-kernel
On Thu, May 11, 2023 at 3:41 PM Fangrui Song <maskray@google.com> wrote:
>
> On Sun, Apr 23, 2023 at 3:32 PM Fangrui Song <maskray@google.com> wrote:
> >
> > scall is a deprecated alias for ecall. ecall is used in several places,
> > so there is no assembler compatibility concern.
> >
> > Signed-off-by: Fangrui Song <maskray@google.com>
> > ---
> > arch/riscv/kernel/entry.S | 4 ++--
> > arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +-
> > 2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S
> > index 99d38fdf8b18..2f51935612d1 100644
> > --- a/arch/riscv/kernel/entry.S
> > +++ b/arch/riscv/kernel/entry.S
> > @@ -191,7 +191,7 @@ handle_syscall:
> > REG_S a0, PT_ORIG_A0(sp)
> > /*
> > * Advance SEPC to avoid executing the original
> > - * scall instruction on sret
> > + * ecall instruction on sret
> > */
> > addi s2, s2, 0x4
> > REG_S s2, PT_EPC(sp)
> > @@ -603,6 +603,6 @@ END(excp_vect_table)
> > #ifndef CONFIG_MMU
> > ENTRY(__user_rt_sigreturn)
> > li a7, __NR_rt_sigreturn
> > - scall
> > + ecall
> > END(__user_rt_sigreturn)
> > #endif
> > diff --git a/arch/riscv/kernel/vdso/rt_sigreturn.S b/arch/riscv/kernel/vdso/rt_sigreturn.S
> > index 0573705eac76..10438c7c626a 100644
> > --- a/arch/riscv/kernel/vdso/rt_sigreturn.S
> > +++ b/arch/riscv/kernel/vdso/rt_sigreturn.S
> > @@ -11,6 +11,6 @@ ENTRY(__vdso_rt_sigreturn)
> > .cfi_startproc
> > .cfi_signal_frame
> > li a7, __NR_rt_sigreturn
> > - scall
> > + ecall
> > .cfi_endproc
> > ENDPROC(__vdso_rt_sigreturn)
> > --
> > 2.40.0.634.g4ca3ef3211-goog
> >
>
> Ping:)
>
>
> --
> 宋方睿
Ping^2 :)
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: replace deprecated scall with ecall
2023-06-13 21:51 ` Fangrui Song
@ 2023-06-20 19:30 ` Palmer Dabbelt
0 siblings, 0 replies; 5+ messages in thread
From: Palmer Dabbelt @ 2023-06-20 19:30 UTC (permalink / raw)
To: maskray; +Cc: Paul Walmsley, aou, linux-riscv, linux-kernel
On Tue, 13 Jun 2023 14:51:56 PDT (-0700), maskray@google.com wrote:
> On Thu, May 11, 2023 at 3:41 PM Fangrui Song <maskray@google.com> wrote:
>>
>> On Sun, Apr 23, 2023 at 3:32 PM Fangrui Song <maskray@google.com> wrote:
>> >
>> > scall is a deprecated alias for ecall. ecall is used in several places,
>> > so there is no assembler compatibility concern.
>> >
>> > Signed-off-by: Fangrui Song <maskray@google.com>
>> > ---
>> > arch/riscv/kernel/entry.S | 4 ++--
>> > arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +-
>> > 2 files changed, 3 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S
>> > index 99d38fdf8b18..2f51935612d1 100644
>> > --- a/arch/riscv/kernel/entry.S
>> > +++ b/arch/riscv/kernel/entry.S
>> > @@ -191,7 +191,7 @@ handle_syscall:
>> > REG_S a0, PT_ORIG_A0(sp)
>> > /*
>> > * Advance SEPC to avoid executing the original
>> > - * scall instruction on sret
>> > + * ecall instruction on sret
>> > */
>> > addi s2, s2, 0x4
>> > REG_S s2, PT_EPC(sp)
>> > @@ -603,6 +603,6 @@ END(excp_vect_table)
>> > #ifndef CONFIG_MMU
>> > ENTRY(__user_rt_sigreturn)
>> > li a7, __NR_rt_sigreturn
>> > - scall
>> > + ecall
>> > END(__user_rt_sigreturn)
>> > #endif
>> > diff --git a/arch/riscv/kernel/vdso/rt_sigreturn.S b/arch/riscv/kernel/vdso/rt_sigreturn.S
>> > index 0573705eac76..10438c7c626a 100644
>> > --- a/arch/riscv/kernel/vdso/rt_sigreturn.S
>> > +++ b/arch/riscv/kernel/vdso/rt_sigreturn.S
>> > @@ -11,6 +11,6 @@ ENTRY(__vdso_rt_sigreturn)
>> > .cfi_startproc
>> > .cfi_signal_frame
>> > li a7, __NR_rt_sigreturn
>> > - scall
>> > + ecall
>> > .cfi_endproc
>> > ENDPROC(__vdso_rt_sigreturn)
>> > --
>> > 2.40.0.634.g4ca3ef3211-goog
>> >
>>
>> Ping:)
>>
>>
>> --
>> 宋方睿
>
> Ping^2 :)
Sorry this took a while, I had to fix up some merge issues but I think
it's OK. Should be on for-next now.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] riscv: replace deprecated scall with ecall
2023-04-23 22:32 [PATCH] riscv: replace deprecated scall with ecall Fangrui Song
2023-05-11 22:41 ` Fangrui Song
@ 2023-06-20 19:40 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-06-20 19:40 UTC (permalink / raw)
To: Fangrui Song; +Cc: linux-riscv, paul.walmsley, palmer, aou, linux-kernel
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Sun, 23 Apr 2023 22:32:10 +0000 you wrote:
> scall is a deprecated alias for ecall. ecall is used in several places,
> so there is no assembler compatibility concern.
>
> Signed-off-by: Fangrui Song <maskray@google.com>
> ---
> arch/riscv/kernel/entry.S | 4 ++--
> arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
Here is the summary with links:
- riscv: replace deprecated scall with ecall
https://git.kernel.org/riscv/c/4681dacadeef
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-20 19:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23 22:32 [PATCH] riscv: replace deprecated scall with ecall Fangrui Song
2023-05-11 22:41 ` Fangrui Song
2023-06-13 21:51 ` Fangrui Song
2023-06-20 19:30 ` Palmer Dabbelt
2023-06-20 19:40 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox