From nobody Tue Oct 15 17:25:16 2024 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 4XSgwF0Txmz5YkpM; Tue, 15 Oct 2024 17:25:17 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSgwD4FhVz4Tqp; Tue, 15 Oct 2024 17:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729013116; 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=uGuyH1kyaSVFYf/CDOOhDb5NAMEvwJZGYodeK6urDZY=; b=TcpRtKo4WFiJG5mOfz2kORZzba2sMyKMQ248+hErFZNsPE3lfcls+n6FG7+YYm7slC/eRI EOXQL4s0g2bqDvX6zyu1Xu+/PAZRZOsMU0t1N65UoxL8sMciuvwQIDPQYywa0/c4B8u7Kw sTIMhDc1SRSM6aAUjz2kS58flLkZTzSXwpnUoVpsWDc/xm59IW2OkZsjiW1DnbYNlotaeC dk1t7An8JbSIMW6mRlhebSm5f9jceH1wwZBy3zMQSihov6OYtrsChmhokvxpGLeNLvfqm/ uX4GuGofmX7i6Zofy2pugjaaWQizT5NXUv5rUNDdARTVZUTzRPsICCskHlD5Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729013116; 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=uGuyH1kyaSVFYf/CDOOhDb5NAMEvwJZGYodeK6urDZY=; b=rHcKGiCnb32IBzPuo1livJ72cbePbS4raF7JERArLKpz10cCnXqA3Ps+mbPa1s4amJ4MN4 JT+xy5I98AegLiZ1L/J007kDeeCzNbYSPjf/6rMc3xuSeAJacADcW4WPCutH8Pbv0P0hYW FBEixMqhjo6sec7Lpx1+58DSxiz1VmwBmCQd1hFqekTVnavVDE6lLdTI90S69JmFjVbcNu DjxTPaYwd3C6OzJ/s7h4a97lR8P7RBqK4qxUO9esw4GtdAakr47EP5tJOqGd8KwYOzyHFX g/qVqFSa7Hmg2tFSPAb+AGi7tMHpO/FEwPcBibdHo7nt+5K980EAV9b9J1KSLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729013116; a=rsa-sha256; cv=none; b=kCEo4+hHSwByLsTGuFNXGUOMhQ4+jNEaKA3eY0gdk563I0KO83l4etZTnNiruoywQOQa/O H4TNFiZ4Cte9Ujl2qrjtcK39huLL2JVhQfuYRmn83YYyylQNbghditkofJsBrbCmFKFigS H8cy6Rb2RmNWUmPLic8SYMh3SyELIP9EQF4XeLAF4YS8dvCcPmDXLR/efOAukh5iM8apE2 cAKSe0Ayp4Be5JTd7tf5fkJiJe6R9HM5XPgkQH7wvWYpCxrageWHaDgFGTl5VuDDYDjCxN lZz4rbOlyApdaPJ4d+zJUL/WfUC4vXdk1O8p9zVzsZDqH0xl2wppsr911PmgLw== 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 4XSgwD3t4fzWR5; Tue, 15 Oct 2024 17:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49FHPGcO028112; Tue, 15 Oct 2024 17:25:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49FHPGa4028109; Tue, 15 Oct 2024 17:25:16 GMT (envelope-from git) Date: Tue, 15 Oct 2024 17:25:16 GMT Message-Id: <202410151725.49FHPGa4028109@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 8803e789393c - main - arm64: Stop setting x0 for pcb_onfault handlers 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8803e789393c504cafedb478a1619aab363c2aa5 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=8803e789393c504cafedb478a1619aab363c2aa5 commit 8803e789393c504cafedb478a1619aab363c2aa5 Author: Andrew Turner AuthorDate: 2024-10-14 14:36:05 +0000 Commit: Andrew Turner CommitDate: 2024-10-15 17:24:42 +0000 arm64: Stop setting x0 for pcb_onfault handlers All handlers set x0 before returning, there is no need to also do so in the data abort exception handler. Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46814 --- sys/arm64/arm64/trap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index fa0b46111a34..fa1132305067 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -375,7 +375,6 @@ data_abort(struct thread *td, struct trapframe *frame, uint64_t esr, bad_far: if (td->td_intr_nesting_level == 0 && pcb->pcb_onfault != 0) { - frame->tf_x[0] = error; frame->tf_elr = pcb->pcb_onfault; return; }