Message ID | 20230423223210.126948-1-maskray@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2409076vqo; Sun, 23 Apr 2023 16:21:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aTd3rtZinse5NyTN1mu+QhJEumWWK7X/5D25c+6QlupMY93tsF4AV6fs16d3ab1GwjjyC4 X-Received: by 2002:a05:6a20:144f:b0:f3:2a0a:795b with SMTP id a15-20020a056a20144f00b000f32a0a795bmr6651494pzi.21.1682292090263; Sun, 23 Apr 2023 16:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682292090; cv=none; d=google.com; s=arc-20160816; b=rNfd3FkIN5zn7I5YdENJnfXLo0t/efuFxFZ7qCqP+Xhc5+GmX4Q1S1FG2555ITlFOi eIG0hxuhdFo2vhnipb/AlhLR9j50BpHt6qH9laKG3V8R4VFgEaqqj7AfQBu1w3YkxL0A kT4yC/ejo4ezKe5gms4iNtz8y7B3BL2XGmGKkTOejdZjAVydz+QlUb/9imPHmryUWy77 pjXD07QqrxP+H9uvrGbQSZ302S3k4FoN89xJr6drcybEztlVA9G6QhqSPu/OexcbZJrF UGuBge+hQu4G1hiaosE0QuX9bF3/0haLZ13aEziEhvSFFTaNEzxDccWaoEormEpqTxIB zHBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=O7sey42C72b5WTZXbtMnXJltAR+/BSEAKE+Fin7BA4wM9toHX+LnUKL0rG17e0zIM+ wvuj0l7h1/k9ZrtqTFcrKySpJejhQCKKKLrCenPuD4xUCiuRP1mqRVMqhaiV35RRgnrX p3EHCx/VP6D5c02/o1VZiUqcuLiZgAsCZWbFotEjnoDcpwSVTYmf8XTiMU3ayC67LS7K 1fwo/S41NOoiCz/Tyvf5qlhAGrXwc+NORKsuxsfg4e8vJlJNtGgV1cKJvcUEexNLfZ8d hbpZNFCTqJY3JLaUK9Ww16g7gjYHoYKCOew6Gewk3IxMkWaOhzm8oy35V+IB9VHcnpMw lSvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ZI+CBW2X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 194-20020a6218cb000000b0063b64146c13si10012598pfy.254.2023.04.23.16.21.15; Sun, 23 Apr 2023 16:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ZI+CBW2X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbjDWWcV (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Sun, 23 Apr 2023 18:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDWWcT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 23 Apr 2023 18:32:19 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12E111A4 for <linux-kernel@vger.kernel.org>; Sun, 23 Apr 2023 15:32:19 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-63b64ada305so4699753b3a.0 for <linux-kernel@vger.kernel.org>; Sun, 23 Apr 2023 15:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682289138; x=1684881138; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=ZI+CBW2XxeN2IpKi/yqKtcV5tOtRGnHPi3UzIKorT7JYnj/I+50lqJj6RJvBPhth77 XP7iLxnGT3sh6X2DkB0DtRiBC5hbiGp0FeZBzXyGmU8vVMqk/8LvAGY/5o9cu9YNPTxz ajp5IK4mjalS57f0R6oNLx2D9jO0K9UWcbowcFTUleKSAugdsK8AX+WD1kA8H1ASJsJ2 savb90VOmo0RFjTjImLZFmZ5D1ksMVzfCfPhGGYAldx9mvtgpGBZ+CWEmUOesfb7puTb +B5wc0kLNGJZnMOjXX4Hli6vECUujnqGrq4cuZ2PQFnvL2nb3/MnBR7Ygn3/IE3MYsU2 RV8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682289138; x=1684881138; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=bz7wd00KIQVH87o+oZdEd9nJLvHUjNTrtlgqQ7gXJVry6WSoNGajY4KmpQWQQ8cOkf eVyuvTxZUH0ARgcS/1rmF0fprig7Egf0ZqBoMZIl8mZlI8g4ISqUkJQiaTaUJZqsC8EO /pS2FSX3UnQrAtx68ZTbhj4/7EjN2k/6+1ObsnZ4XXWYngdUo8IBM6NLVz/GWy/J3Khz Qq5cNGzMC/EyDGMhl1DRwLet3v//CnlM2bYPqOQmhV2pnlT6ZFUSirUm7KKTWTXoepxu d5NyxXj7/qMUaL4+jZVTf6shFWZ6wpQn1cTRo8UNLymk1lu3AX9pE2YTn9B8Sb+mOE6s pjiw== X-Gm-Message-State: AAQBX9ebMU+ivBY0iZfiqoOJXYGqVVKAPrmdHvl1tKBqCAoiC4cgoTCC e+AT7ryrtMTuIJrnsNw+x9tYA9XAEtaL X-Received: from meowing-l.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:3eba]) (user=maskray job=sendgmr) by 2002:a05:6a00:1a53:b0:63d:46f0:2370 with SMTP id h19-20020a056a001a5300b0063d46f02370mr4945410pfv.6.1682289138662; Sun, 23 Apr 2023 15:32:18 -0700 (PDT) Date: Sun, 23 Apr 2023 22:32:10 +0000 Mime-Version: 1.0 Message-ID: <20230423223210.126948-1-maskray@google.com> Subject: [PATCH] riscv: replace deprecated scall with ecall From: Fangrui Song <maskray@google.com> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Fangrui Song <maskray@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764011110778333811?= X-GMAIL-MSGID: =?utf-8?q?1764011110778333811?= |
Series |
riscv: replace deprecated scall with ecall
|
|
Commit Message
Fangrui Song
April 23, 2023, 10:32 p.m. UTC
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(-)
Comments
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:)
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 :)
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.
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!
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)