Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8276662rwd; Tue, 20 Jun 2023 12:45:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5B1ibV+tW+f9IyzbzMk2KaqTZMcWUkVgkB+Gm70ChySmmN7WVLi2ypRQMjWMrrrmNfCXGP X-Received: by 2002:a17:90b:610:b0:25e:8b7a:c48 with SMTP id gb16-20020a17090b061000b0025e8b7a0c48mr23029813pjb.1.1687290329372; Tue, 20 Jun 2023 12:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687290329; cv=none; d=google.com; s=arc-20160816; b=ABJ7NNXEwPV7naF0koRWTabEyR9qFtPgy36QAtWpOKC1gyvv1AQ6hiub34BIElGvSU 5htoCkgRzsQ19/Iuq8Bul9aVn1RjGZPs0IUgLAY0Sl2X08XjGA/BQ7+9wSuj8isohKA3 kq9aOYJwjGyQgCO1XiYyS0tJd/iNOaEMDQRFSYxw1qip8gYCgXBvfjR94YNRYalVgWTF iMhCRc3XtIRcqHXFGJoMnxGtfVo7lHMlLN2NV34hynO7NtmjDEqXLH9QPtiQQiIsttbs +Q/a74aBgnSanGnflWkFQQCUmVPTk28si8fOTnIPKBcMh9eGCPsCrp6yu2efTdXBzTRd GeQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=lxbAB6x8wYPpV1ZKtdNP9xJrU3nLdB1/iIS73PBEfC8=; b=sQSVmMkFRMMjjXztlAymcmRyHm2taKIzm8TxpAkMO7CQCgmzuLSyS+RkmemqKEwjbB Ln+JJcEiPSHTlm+W7ZovMbq8rrOCzbnTkMh39T/HhY3cG4lZ2TkSutA1Ucw3NmVfDiId i/L1J9UjfitJnvWMp8orrgJstC1v+ieLwkvDAERdBG1YkdrMgI/s3CJCn48hkQYjuQXn fZZsQ9SM/oJ1SNU5V1r5ZHwraRQACeW5UZjH+jwmUEO8pE8NLDFXp7qw3aaFBoyucAVF gZP9X0vRVKklhLI1FAn31vbZfscj6aoUSEsep7hnZxcqAFnGp+t4587YOVuHwWHN2AxY FLvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=YScjX+HV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a17090a694f00b0025378b5495bsi10430060pjm.33.2023.06.20.12.45.14; Tue, 20 Jun 2023 12:45:29 -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=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=YScjX+HV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbjFTTbD (ORCPT + 99 others); Tue, 20 Jun 2023 15:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbjFTTa4 (ORCPT ); Tue, 20 Jun 2023 15:30:56 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D321704 for ; Tue, 20 Jun 2023 12:30:55 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-54fbcfe65caso4092661a12.1 for ; Tue, 20 Jun 2023 12:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1687289454; x=1689881454; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=lxbAB6x8wYPpV1ZKtdNP9xJrU3nLdB1/iIS73PBEfC8=; b=YScjX+HVPsTW42Q9iNRZVlLdte3SLQ1VHNdCDPsHAn/jerdshUD8c8yQ9zHQd7wcED t5p+PkI5uYBj5xd9ErM77/Eo0xKTLwtrRE7TjoVWXWJx3uO84Tzwi8APG8yXW7+yRY3A CsgYlza9FCWtcCkBepcbtbjGH0mCKr3w8rVwsvDeIGWUWjP8RcnxS0Rdi/oC/QwGVU59 RT6JCk67Ms7umsS2I/0RzFmWLj+epGzTUL06GyAjEn7tp+KUan1rFXziaiSIXMkhoSv9 Fq4R90lXHLZ/BjXcXmYcT4QuYq9AjFjit7SU8rHhLfdAHl8bNFYGV0aoTW3iNi1qZw/C Cw6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687289454; x=1689881454; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lxbAB6x8wYPpV1ZKtdNP9xJrU3nLdB1/iIS73PBEfC8=; b=C5ymYLHnseF2x+iCHUGW6PkTUDG0gMujDq5VPejFyXqHPSxcHI3/VoVc9D16+BnvIW DTAGYlV2o+idZjRHPvcJ6ronjnou2CvTGqEHtOJTR0YdBmqjnfL0JgVdrfbHHt+RfVPU S/Nd5RHRwpkEPtpFHUtZTuQLr099hms7CjYY13WYqyJqmvwDw0Jy5aJAe1nWpgh2687A WMz5Rry6Qy6XGJQwC7aQq+t59b7uV45uZFW7WwjwoSwTojOP60VBPx69HIOkvoivtp9D J+CVI49Y4UbpH6KL5QB7LaIrENnARyY4nGFsgnEFPkToJiSSosQiwafDfW1yw8TB1UXS OCrw== X-Gm-Message-State: AC+VfDwK3ASz7t5BpGZXyzojBp1QNec1OALlu8E3OQ5MF4q71ZFjH22d MUDNz/LOS2YeJtCRxDqAUW7Q/g== X-Received: by 2002:a17:902:c40d:b0:1ac:6fc3:6beb with SMTP id k13-20020a170902c40d00b001ac6fc36bebmr22331826plk.9.1687289454320; Tue, 20 Jun 2023 12:30:54 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id y10-20020a17090322ca00b001a6dc4f4a8csm1983321plg.73.2023.06.20.12.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 12:30:53 -0700 (PDT) Date: Tue, 20 Jun 2023 12:30:53 -0700 (PDT) X-Google-Original-Date: Tue, 20 Jun 2023 12:28:45 PDT (-0700) Subject: Re: [PATCH] riscv: replace deprecated scall with ecall In-Reply-To: CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: maskray@google.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Tue, 13 Jun 2023 14:51:56 PDT (-0700), maskray@google.com wrote: > On Thu, May 11, 2023 at 3:41 PM Fangrui Song wrote: >> >> On Sun, Apr 23, 2023 at 3:32 PM Fangrui Song 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 >> > --- >> > 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.