From nobody Fri May 10 21:44:58 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 4Vbj8p6VRGz5KV4J; Fri, 10 May 2024 21:44:58 +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 4Vbj8p5xdYz4jDB; Fri, 10 May 2024 21:44:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715377498; 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=qC3M2JPvJrNhrS39jVP3eRTS5iYGJrGsURdt1sEZhpU=; b=UeTa2Gyu9R/zYk6/4mgOXEkOW198AO9t8aRJHUwkg8p6GWwLEtSQ08MegvQFTwaDWWq8Qq m+rTYQJRpYnerb9Cfu6VoRPCo2PPnvrrHcmWcFd8gefiHUDVV2lV83LGKsag/4Ujn+Mr70 9smS2LOzQ2/JAwYcQJIFH1YEBl94HD0UNYRPhqyDvusYQQJCQ3TgaYshFbouDsecSTLnK9 gX2JdMFoC2hhL4YbIcONXVSUBHFf31OaHvd9fDND/UkI+wOqotfloRC4B+CDx8SzHefMOU 7ZnAwv6a6ZGxw13iA/7h9vMd8MJYqkCxo2j3tVMQXyxHvBSwWPhPdN0TOsQEpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715377498; a=rsa-sha256; cv=none; b=aGQocHUGu/4elkWerYtQgLMbKMdtcgli3nGS5YuPxesKiS77B803tgm4IapgkUwujn+DRz c2/hYtoDgYhZQ2cNt5GShxd6nNSCRjheAfdnO2M2yPi6ULhhKSen9v2yLOd2GQ+3hK8U0l ll1RV85BWnER7txqx6/3vjAqD4uQXBI7rGCBt6MTZiGKbVq0YO/PI7W/Hyb+MvqeIoCre+ M7GQFDsDUWGfrZh9x9u72AcOZejrTme//Vohb+UPzNKKQnvqffhcGMfGFAaQ4+ih7kY2Gy Ufs5vtMWvzHE/bCDqNKL913Qo0ZB/9DUMmw4cAHD6HKgdlGb+ar+Bjxqf5G2gA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715377498; 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=qC3M2JPvJrNhrS39jVP3eRTS5iYGJrGsURdt1sEZhpU=; b=XXbbj+n6JHAU84LzoWEe0YN4nCcblLt8N1DCGaCkhWuZoNiPP5IMnIpzibxABgYPme5f1i J/zwdnBjhpXyhAh0lAWiXRniMj/WfYlyO1tLjM3CuRP26MqFgwBeuZ8g0FtU283AA7WQX7 0lDNBOAb2GIm1QLUuHzHwrukk+xUF4pRmPqta4q4Pyl26oXe/Bv34gUhcpH83PmVgL5KkE YCmPCXlrSJlEjWKhDKozY+YC13XY34rjqgVb/M2fbc+bFYWs4TrA9sGW8ha+k+lcglHB6l fFGP0UPJuXrLS+RMX/n3L5hnnU4RHQ+qnT/UeyKqPxjIg/36tVB7gZbwdtbbjA== 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 4Vbj8p5PPZztxp; Fri, 10 May 2024 21:44:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44ALiw6j033424; Fri, 10 May 2024 21:44:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44ALiw9h033421; Fri, 10 May 2024 21:44:58 GMT (envelope-from git) Date: Fri, 10 May 2024 21:44:58 GMT Message-Id: <202405102144.44ALiw9h033421@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: a2409f17377e - main - intr: Document how to get the interrupt frame 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a2409f17377ebb5c6e3e522ae090a0845ee19aeb Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a2409f17377ebb5c6e3e522ae090a0845ee19aeb commit a2409f17377ebb5c6e3e522ae090a0845ee19aeb Author: Warner Losh AuthorDate: 2024-05-10 21:41:36 +0000 Commit: Warner Losh CommitDate: 2024-05-10 21:41:36 +0000 intr: Document how to get the interrupt frame Document that the only way to get the interrupt thread is to use curthread->td_intr_frame, rather than the old-style of having a NULL pointer for the interrupt thread. As of 38c35248fe3b, support for that has been removed. I neglected to update that commit message with these details. Suggested by: mhorne --- sys/kern/kern_intr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 008f8d1242ca..7a57d964acd9 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -1346,7 +1346,10 @@ ithread_loop(void *arg) * * Input: * o ie: the event connected to this interrupt. - * o frame: the current trap frame. +-------------------------------------------------------------------------------- + * o frame: the current trap frame. If the client interrupt + * handler needs this frame, they should get it + * via curthread->td_intr_frame. * * Return value: * o 0: everything ok.