Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9472036rwr; Thu, 11 May 2023 15:50:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57sn5Alje8awTADLQNzSQHVkhrZoSqLWZ2RwTGztY7qCO09kYgC0+RKv977lmRH16Ioagn X-Received: by 2002:a05:6a00:ace:b0:63b:89a2:d624 with SMTP id c14-20020a056a000ace00b0063b89a2d624mr30353035pfl.12.1683845417236; Thu, 11 May 2023 15:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683845417; cv=none; d=google.com; s=arc-20160816; b=s8Q93g7olzGxiS6T6HhGJRM5e2isC9Nif10mefIieUcf6QstUGGHgZ902KVqfWb4dQ fAq37Vtd9wttFFBPFAlbPX5uHq3zFVoKLDJrDZ57bzmjZ8sP8QWg60rw780IGPIXaako tg8I+HPw0Uq4f9PjRP9G27Zg567sXV5meGvWxMqoUJR+NG6+bqE4dbFyghbVIfPvsXSm QvqtaMz2Z9upjyIvdpxPhBfxm4Q64XeiXsOh+g1AQCcp2RhrtbAmpbLKk4MXQkQinggh vJpnUVYINJG++pT9wZWwW8NchKfa7NA7VGoBuLCCl3VkOHfUELuHMhJq1vE/czAsbDLs 9Mdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FRrgqpOwIlQoRPTZLdmgpQ64qveaxTRuu89B7YxAGY0=; b=kX8Qj4lY901/KxX/xUgW0jgeonmdAhwQ76sNRYsOHkkz9DzzIQNjpexrmNGum0qaAp myp/a+E/vM6AwoZBPN0ADuR5aN+3PLUMKYET5g9FK04p5N+0zGEOF74mOS9+Dirir+xL EkZOsf33jtbcXtLYOw67NxjsfxpayKmz0oW4BQ1snCJCivnGGO92vsJDsHg0gTVbutSG ii7GM/ShDwomE5FXHNlP3Xp1p134j2qcC7lEDOhZY+kAUIF8Iqipb85h8SA7PIj9WqBR cUBcKHV63oy/opn2su+9QNO1tSjNyfm6a8Hi2qGlU9HeUkF6H2DaZpXfMBxfqRGqzv3C 9cdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=DHYnwtIO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v6-20020a626106000000b00646d42532f7si8479511pfb.191.2023.05.11.15.50.03; Thu, 11 May 2023 15:50:17 -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=DHYnwtIO; 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 S239494AbjEKWmH (ORCPT + 99 others); Thu, 11 May 2023 18:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239291AbjEKWmF (ORCPT ); Thu, 11 May 2023 18:42:05 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638872720 for ; Thu, 11 May 2023 15:42:01 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1ac65ab7432so447105ad.0 for ; Thu, 11 May 2023 15:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683844921; x=1686436921; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FRrgqpOwIlQoRPTZLdmgpQ64qveaxTRuu89B7YxAGY0=; b=DHYnwtIOsObzm5cm/h2VvG5bwx3m3YhRXesCgIFneCf491ex5QqsJ4W2eMPAG8wzPv ak43yqflicbl/KI+dHgg0aGr4U9LEv4vTdpS1nRO1m89WRv9F2QXhHAj279D0YbP8OGo /cyMA8aMw9Z6Tva/A1MLuvGQvfqUdzY8GU7YecKug/+t6eSsc3AZAhQ7xXimDg4rC0sL CxH1EzZINasfsoSEA+p/mbivb9mnEB3a1mZGHsXfpvJrJYt5/q/HUb5eK1S+GTjGH31j zbFYZ54F5mjQGo0a/hng8ANmX7lTUoW7eW3zvW1M67q98oa3S92SRxJXlhKpXI0sSTZq B5FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683844921; x=1686436921; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FRrgqpOwIlQoRPTZLdmgpQ64qveaxTRuu89B7YxAGY0=; b=C8Wpbb0hIThKzQ2epm2z0xemmxAcpaGNjgbZ7xfI1X1tfy1fB0zgGg7zSD8CZyRhOS 5bVPTsFUYzzWAwMZdU82/2H0vwxOqPNLh4Dt2CbdG7rJh+ZFHWjNaQftZEjWG5H7qwGA QKOasdmBgAQD78bRPJF1MI/FxqW+rXeTSDV/ntKKRUikcbURKIYEaHnDP4ZbH+Mh/nMS e7/e2SKgDTGQsqex0cyamvUiKhaRKU5xouKGT2JCLjslYjXcNAhBhVZmD+DsoMKbfjWr y/W+Uavl3fqAo7DVIecJOye1XmA7e5Z2Wd7FflakseBzEfhrcVrNmwYu4ycS0xanLVfA T2aQ== X-Gm-Message-State: AC+VfDxdk1lnZ0nKabnRRn9ByWIlOTkYVz4jfe2oea/AEaedlkKCz0jS 9wn1RLuALKmnmhFjf10R4SJY+UA2vyrh8zjJBK3y/Q== X-Received: by 2002:a17:902:c410:b0:1aa:ea22:8043 with SMTP id k16-20020a170902c41000b001aaea228043mr14610plk.7.1683844920748; Thu, 11 May 2023 15:42:00 -0700 (PDT) MIME-Version: 1.0 References: <20230423223210.126948-1-maskray@google.com> In-Reply-To: <20230423223210.126948-1-maskray@google.com> From: Fangrui Song Date: Thu, 11 May 2023 15:41:48 -0700 Message-ID: Subject: Re: [PATCH] riscv: replace deprecated scall with ecall To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 23, 2023 at 3:32=E2=80=AFPM Fangrui Song w= rote: > > 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 > --- > 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/vd= so/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:) --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF