Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5843431rwl; Tue, 11 Apr 2023 10:42:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1a89OcI4gzkaaTq+cEQiusv1xh+CIIioUdgb/jM+UJX3S4vIpEcsKbxLt30pOeQnBkfpb X-Received: by 2002:a17:903:2346:b0:1a1:aa28:e67a with SMTP id c6-20020a170903234600b001a1aa28e67amr4762574plh.48.1681234942997; Tue, 11 Apr 2023 10:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681234942; cv=none; d=google.com; s=arc-20160816; b=vJc3QXlUrQ8nwBqvqo0KqqoGzdtskeqbIIClKNmBLuxvzD1i2oMsPGELbQbl41MiIC tfbY585wyBTX31E02nfo7mY+SGnQcU+nDwH+gD08fky3EhiODxBpT4j4FEF8grFaFxfF vYTsUO7zFVdq5HXIy2zbvsTg1y/K4SL1KKWMmxjpKwnzDMSapVJBr2KpDs4TbaotprS9 4COe1v7rZ/5WQnN9q8mFTvuEoVjlZdSqQop6P6HW9VwHodaGbXHipJekze87FzBOekv1 RhuSzSI5Gs0/BUW/uZfH+D1cCgT1ptypFhJV8veGFgFZeS+gCCjUyaeUyRDwwKTgxCjf 6yiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=nCBNbmPtBccd+XpM8bjkNtW4WPdGSunypl86e383Q1s=; b=YgKw1MBjslfKmha0QaAOzNHu4zU51FYnzSC3PPFvHv/xZ3X/xi60Q6P6NJqn1zfj+8 mJuMRXG9Rz9ZM+jDRgh5Iak8vKezX22ctLoKaIqCzkZgGxSA7h1K5W2tjguYAZY+hlvc DYKRdTlXCtsdaS4BpUuo/HKOSyeW8xcMOOvhjk+xZZ/OYuLMZ6+GpYKwItXSIsLkO11V cUMivKdas6myLmzF4zjxPbYA2MH6xEz7FdDzZDkoKqSmAHxURrJIwhQuSlQUhCEjL6Om 24B4RQhmH3uW86s1vKw4R/oj5XBFKtxiPPdIY6cvl5t1xquYcbqxWLaYreXYqEecpFfN aDvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JtrAAs0l; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lh4-20020a170903290400b001a64ce692a8si3506210plb.19.2023.04.11.10.42.10; Tue, 11 Apr 2023 10:42:22 -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=@kernel.org header.s=k20201202 header.b=JtrAAs0l; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbjDKRko (ORCPT + 99 others); Tue, 11 Apr 2023 13:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbjDKRkl (ORCPT ); Tue, 11 Apr 2023 13:40:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F28E6E8E for ; Tue, 11 Apr 2023 10:40:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7FE6062858 for ; Tue, 11 Apr 2023 17:40:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id BF445C433EF; Tue, 11 Apr 2023 17:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681234819; bh=GZtan0aDYvfz7S+nGDKHusjvrOkU9PdTjM5nSWbDxz8=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=JtrAAs0lnFbUIMDj3IZUpBkAkbkQyNgDo8Rp209XcouyE0H5f5LLUzhgos5gWBsvg H43PILTKuVw4X7L5jvBv/TD8hb7sFnSo/kIpMnbW/ZV1TctjFf7LAIwRP0x5Fv7ABl mp0FsGPyiIKdtXMqJLkJ9KxoxOgsKl5rP6zSY4MDyPUALweuJpChJHhG331nTj0ZXn JP4NVF2FtvgroP65nmUgTiLEf2wOqs1uluSvl0gMftLOq1iYqR3x/IVU7Y70RaffBS CWvgyMmMDQXS2+8/5OEpwVoqs1FmTjq/j0dezJOCtpwZ0J9lNVoDe1MZvFy/I3zJn5 kP1VvvYp5nrTg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 98D70E52443; Tue, 11 Apr 2023 17:40:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: entry: Save a0 prior syscall_enter_from_user_mode() From: patchwork-bot+linux-riscv@kernel.org Message-Id: <168123481962.28886.3531781273059476912.git-patchwork-notify@kernel.org> Date: Tue, 11 Apr 2023 17:40:19 +0000 References: <20230403065207.1070974-1-bjorn@kernel.org> In-Reply-To: <20230403065207.1070974-1-bjorn@kernel.org> To: =?utf-8?b?QmrDtnJuIFTDtnBlbCA8Ympvcm5Aa2VybmVsLm9yZz4=?=@ci.codeaurora.org Cc: linux-riscv@lists.infradead.org, aou@eecs.berkeley.edu, paul.walmsley@sifive.com, palmer@dabbelt.com, guoren@linux.alibaba.com, bjorn@rivosinc.com, heiko@sntech.de, conor@kernel.org, zouyipeng@huawei.com, linux-kernel@vger.kernel.org, palmer@rivosinc.com, heiko.stuebner@vrull.eu X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Mon, 3 Apr 2023 08:52:07 +0200 you wrote: > From: Björn Töpel > > The RISC-V calling convention passes the first argument, and the > return value in the a0 register. For this reason, the a0 register > needs some extra care; When handling syscalls, the a0 register is > saved into regs->orig_a0, so a0 can be properly restored for, > e.g. interrupted syscalls. > > [...] Here is the summary with links: - riscv: entry: Save a0 prior syscall_enter_from_user_mode() https://git.kernel.org/riscv/c/9c2598d43510 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html