From nobody Thu Aug 03 21:02:42 2023 X-Original-To: dev-commits-src-main@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 4RH1Wk6JwLz4V0Wj; Thu, 3 Aug 2023 21:02:42 +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 4RH1Wk5RgVz3M6X; Thu, 3 Aug 2023 21:02:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691096562; 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=//i2k8hxaGu2Tgl1dROQSGAMhsBBBful+u8vMM7IiG8=; b=NmBzWxDE8uSNOl+cB2/rCu9bpY7M5e1zezbKhp+P2aMPWP2X40IANHzKOnXdfqxtJEfbek xcr4Di6CJG0CAuSrQuGwtwGNqbeidYshHHW5+KTyKg0XVTgqU+var0lTdDwSWEJ9bKypix peYzmVAcq0sm1shrEThT7koOYu9+/sSWhlnrgyR6eMuRSJFxZ+Za43jcWKKUEq0Itp/Z51 0c9w5Z0iu2X+zC16EeRU4kYXy3zOW9UtK1f++Zl9KqY9TBvGwVlg8kC/PYCp1Ty2tQBX3X ZAMJTBQRsWBH4xawy0ghCJLk1OMQXCGQMETxt1DsWA6b8WksDcLNNOSMIGjzGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691096562; 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=//i2k8hxaGu2Tgl1dROQSGAMhsBBBful+u8vMM7IiG8=; b=r1XsbXytHS1EdcsdQSe8gDHv08ro3cETuVEHn4sxLKic1M2vLsbhf3fl1m58ITjxSeBaS3 8OUCdxm2d+tXWx/WAhL6wJ4AvCj1/oH+TZgZ343MInROx6QLpamHLTrA3IGrkvrvx54AQz 874m3e3da4doATgRcKtRCHj0QL0XMd80m7jlLVIW6blsa69yCg4r43yDB2Wc+F9FYgHOPn VS0dTh43aSgMNuJusNh+g6Cjxk1bgsFs0uayLKC814xOWl00x9sB4bNd7zDbALjmdCLZ+d AcDShCyw8MS3/sDlEz2+OtuJ2eiYXzbo7wGpfHSK8dIh+i7liE5OToL8A3aCiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691096562; a=rsa-sha256; cv=none; b=xmZKcmquEeFALySIHu0v/9LBuWJ++PQAPsSypXo9Z4AacIOQJHU4bQ2EYeABLC/bv2Kkla ma1Ibb6ShU1DhCoVIfVnKbYr1goYcNPtysMFNrmmjddi94alAwsADFPwPXC/zxMxfMWcR/ vlX+VFwo341Qio6ULPvPhOoB4q7/CC64KnaHKCS6W/mGYS/L2z6u2mLiPOQ2mnCiQh9Cpr 854SjufXLDDYw4CrR9e1T5Ed29UQ2oGw/gWuPUoA0eMjQglKdMmTyJMxbCvHs0Pd9QKWLt 8c4niKx9WtLCoks6gpzUeHaPf1571tPjooI3BCRyeaM0W1ntPjsyFZ1OniaaTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RH1Wk4WwPzbyV; Thu, 3 Aug 2023 21:02:42 +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 373L2gbB087732; Thu, 3 Aug 2023 21:02:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 373L2gaS087731; Thu, 3 Aug 2023 21:02:42 GMT (envelope-from git) Date: Thu, 3 Aug 2023 21:02:42 GMT Message-Id: <202308032102.373L2gaS087731@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 2bb16c635249 - main - x86: retire use of intr_bind List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2bb16c6352494bf7aba92be700908ddf01e0c08b Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2bb16c6352494bf7aba92be700908ddf01e0c08b commit 2bb16c6352494bf7aba92be700908ddf01e0c08b Author: Elliott Mitchell AuthorDate: 2022-10-07 03:23:34 +0000 Commit: Ed Maste CommitDate: 2023-08-03 21:01:18 +0000 x86: retire use of intr_bind `intr_bind(u_int vector, u_char cpu);` looked suspicious since everywhere else "cpu" is a u_int and >256 processors isn't unreasonable now. Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D36901 --- sys/x86/x86/nexus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/x86/x86/nexus.c b/sys/x86/x86/nexus.c index 332b1527efbd..b57bda82453c 100644 --- a/sys/x86/x86/nexus.c +++ b/sys/x86/x86/nexus.c @@ -615,7 +615,12 @@ nexus_resume_intr(device_t dev, device_t child, struct resource *irq) static int nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu) { - return (intr_bind(rman_get_start(irq), cpu)); + struct intsrc *isrc; + + isrc = intr_lookup_source(rman_get_start(irq)); + if (isrc == NULL) + return (EINVAL); + return (intr_event_bind(isrc->is_event, cpu)); } #endif