From nobody Mon May 22 20:04:17 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQ7h20w9Cz4CPFG; Mon, 22 May 2023 20:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQ7h20GBmz4694; Mon, 22 May 2023 20:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684785858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LvNMHVPiVdr3fnu0O0wZQllRAAGba///LhhwN/SUyNo=; b=JTFU5CAzOX6RxQbAUPwzVs6Ihqbo4/X9Z6j4KC6uARU4vLR2jDITJP73i7JStJpCbQtaGc Oe04QqAXsunCBu0gkyVVy/7sM5RBqIpuQdSXUzzHQbtNm/uHe1WGsVseMKv6Yp53g3V6CE qxayDAdLA3PnWRiQh2ARGLVSvyhsqoGafjiPpgYE2lZEPmVPebmtHN+jvNWMERBLWzRBab lcz39UMYw5n10tdR3otsN/BCNWsXl0akV6OejzQ4gUaONLYea/J+Dx4qFVnFFeESAhI+Ar HVYNI8abILMRYQuAv+1j/y8Uo+VLuE2OXQM1Bns194NnUOPJ15NvllRdq1syHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684785858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LvNMHVPiVdr3fnu0O0wZQllRAAGba///LhhwN/SUyNo=; b=XXpizpPbbeo53y7t8C46IZBTHhx1knZ2SBamIyFMn16nuFMiwqzvA/D8MHJDo8BB2DCfur gi4HEKpsst+JRlcptcARzW84TSDQ/Tu/FBEmMuemYmTg9esqzpDdca0DQgCs3iZnFvXv+/ pFwEipZ1Iozbeh7/17C9Z7hCL5r+h86T+T4wznjWVwjxS7grfjhke0aSQbvx3AWCo4Sp/V VvbthL6oP1AXyGd8/lTsMloQTbgEHJ792+CEarl2Ycdt8CcF+yNBwhTErIxmlgKpn30vos 3B0oA+4H3qa97hvIKRkRAiDpgcucY8Qe0FbRge1Tcvw+eE2GZTPgQ9UMsJGrWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684785858; a=rsa-sha256; cv=none; b=B31PgP+vrfMWhdVtflRVjmDuPASZOndPjF9ejIAx5Dtv1prWobkrOlkk66TvCkrIr/4ncW 2RMixDiA0udwHZrrBcuo9k1TZu+l3/m1WvwkmbnTBnRHRnfWbeHgDpUizLpSfU3CSXjka/ jOAfzZQuwZ8t8L88JGGy9b1d8DeOZrbcAM5brW/06VGkA8X1hXp/a/EjgKVv5qOyiRd99p oT5mTdbqufLe7GVFnbZ/2Vo5runD7DpBBYsLxOPbfCgBHPfrCyYovW0ZTGk8vk7dsmvwOR CFBwpj37ozCxud9n/nEcI5GXBRHqEB6+sT6BJSm5VvVqq14i8hfDXB801FQ+KQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QQ7h16RTqzWcN; Mon, 22 May 2023 20:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34MK4HKk004026; Mon, 22 May 2023 20:04:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34MK4HAm004025; Mon, 22 May 2023 20:04:17 GMT (envelope-from git) Date: Mon, 22 May 2023 20:04:17 GMT Message-Id: <202305222004.34MK4HAm004025@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 3c6fb586b956 - main - riscv: do not duplicate sd of tp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c6fb586b956798fbff8e9c50e7e3a7f204ba5f3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=3c6fb586b956798fbff8e9c50e7e3a7f204ba5f3 commit 3c6fb586b956798fbff8e9c50e7e3a7f204ba5f3 Author: Christos Margiolis AuthorDate: 2023-05-22 20:03:06 +0000 Commit: Christos Margiolis CommitDate: 2023-05-22 20:03:06 +0000 riscv: do not duplicate sd of tp Reviewed by: jhb Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39894 --- sys/riscv/riscv/exception.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/riscv/riscv/exception.S b/sys/riscv/riscv/exception.S index a68e7938e537..17b2038d4068 100644 --- a/sys/riscv/riscv/exception.S +++ b/sys/riscv/riscv/exception.S @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); addi sp, sp, -(TF_SIZE) sd ra, (TF_RA)(sp) + sd tp, (TF_TP)(sp) .if \mode == 0 /* We came from userspace. */ sd gp, (TF_GP)(sp) @@ -54,10 +55,7 @@ __FBSDID("$FreeBSD$"); .option pop /* Load our pcpu */ - sd tp, (TF_TP)(sp) ld tp, (TF_SIZE)(sp) -.else - sd tp, (TF_TP)(sp) .endif sd t0, (TF_T + 0 * 8)(sp)