From nobody Wed Jan 22 15:15:58 2025 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 4YdSML2YzSz5lbKc; Wed, 22 Jan 2025 15:15: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdSML1X3Cz3cgC; Wed, 22 Jan 2025 15:15:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737558958; 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=LSndFPKLDOXZorww5tysFEXMl344rykSkNrBVHNPmw4=; b=C887eOTg46UfhW5+QDS4Gu43Atr6oMljCIntChBa7apD3XcZlw7WGsDgVUWskno1dOrzQn Jos4fcDgtidxqMbqWUxOrIFBDpwK2cwQRIoPv8mr0WLLoJ/WWdMHZI6EDFrjJc2D5kSt+Z o+PvRbSdwilCxC+ieJ0ujS8RnUGAHw18PI/9ffNRyMogpfwPsfvbiKm6sLcinNBl9dIuzl sJnZxwKajRtZRGnUf4YQim1SK4Gb+qyXiBc9OcWpcE1urcHMcfPf58L6d/vQTjhkJafdDz oO5m3Y9/JVT3lgdtxjiteRnGjSMKDxylFSN+NY/jBI9d7LAEyjP7BKsty+3pig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737558958; 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=LSndFPKLDOXZorww5tysFEXMl344rykSkNrBVHNPmw4=; b=NiK4M8vFvN2EFKJ2EGR7d9inGLd9ctc7YnGnU190EFbdqWJVyW+PeB/Uo4r7Fcy3FKadAH VCOlMgfCJ3QKZsHKw3f+s/7uHi89rLooS+/K21t2dyYFbiDem+KxK672kX9zETZNuYyTtt 2boW49rhLAjQKhtzHpaQsyg5dk4DMY0uijy7cXq3zpdTaX4m61nA0UvHeRLM5Duz61uNck B72QSbKzMsK4PDQxV64rA/XOf0BDA2tNj1zA1YzqfsXh1I5JDKtlK0MN7FfSLcVxoUQ/Th /FqPffKtTw+B8sW/BgVBqotqPq68RJKPcDB6vAk7YOutQNCPqCq3R7+XiUABKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737558958; a=rsa-sha256; cv=none; b=xfMpT58M8nGD8SD+XPYoNQJ9P/XoTNbsR8Z06Ssvp7flD6bDx1LcpDikelr+KceGhOB4vB S43qm5Lyl9UsRIHiBXA/ilWkJevV6ePooZjp6jaqDH64vwYCrth6qr+6usek/vG48V2jlf mcOb4QJT7JEtN/YPCv3o0W/zuAPcIIXWhPpvH6CJnMKdnCkAEPz77soxqvruCB7WbnSU8F fyCfqapf1CA4wMyJ3VmkuGy9ESP/aT4MSIyCOhtOW0oNchF9TQkXo3W9YbVEUqADJNbbPV gVuDXhoxcq58x23NEuogH3GLa3dQ5ziviXyLupoMMN0deMYlCyQdKQnLK7VAyg== 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 4YdSML0rbkzy5h; Wed, 22 Jan 2025 15:15:58 +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 50MFFwek077480; Wed, 22 Jan 2025 15:15:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50MFFwso077477; Wed, 22 Jan 2025 15:15:58 GMT (envelope-from git) Date: Wed, 22 Jan 2025 15:15:58 GMT Message-Id: <202501221515.50MFFwso077477@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bojan =?utf-8?Q?Novkovi=C4=87?= Subject: git: f0d036cf6655 - main - amd64/fpu: Fix build for NODEBUG kernels 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: bnovkov X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0d036cf665520cead4970b4337d72b077ed5eea Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=f0d036cf665520cead4970b4337d72b077ed5eea commit f0d036cf665520cead4970b4337d72b077ed5eea Author: Bojan Novković AuthorDate: 2025-01-22 15:02:17 +0000 Commit: Bojan Novković CommitDate: 2025-01-22 15:15:32 +0000 amd64/fpu: Fix build for NODEBUG kernels Fixes: b995101 Reported by: Michael Butler (imb@protected-networks.net) --- sys/amd64/amd64/fpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index 79d1722268b7..48bfaa53c7b4 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -1297,6 +1297,7 @@ fpu_save_area_reset(struct savefpu *fsa) static __inline void xsave_extfeature_check(uint64_t feature, bool supervisor) { +#ifdef INVARIANTS uint64_t mask; mask = supervisor ? xsave_mask_supervisor : xsave_mask; @@ -1305,16 +1306,19 @@ xsave_extfeature_check(uint64_t feature, bool supervisor) KASSERT(ilog2(feature) <= ilog2(mask), ("%s: unsupported %s XFEATURE 0x%lx", __func__, supervisor ? "supervisor" : "user", feature)); +#endif } static __inline void xsave_extstate_bv_check(uint64_t xstate_bv, bool supervisor) { +#ifdef INVARIANTS uint64_t mask; mask = supervisor ? xsave_mask_supervisor : xsave_mask; KASSERT(xstate_bv != 0 && ilog2(xstate_bv) <= ilog2(mask), ("%s: invalid XSTATE_BV 0x%lx", __func__, xstate_bv)); +#endif } /*