From nobody Wed Oct 30 03:09:04 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 4XdXCP0Wxvz5bSd6; Wed, 30 Oct 2024 03:09:05 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdXCN65fvz4XRj; Wed, 30 Oct 2024 03:09:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730257744; 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=bXw624RpiDulHWotygwKAo+XQYcDnQwCmAcTI2IshHw=; b=Iez4aQquHWMtgR4shu9DjgvgzNVfmSmqCZmoj2tH/uqjliBpzDiLOu1egwWE+/+QYaUw7q Yw2yFKM8BbYpS/PMyOHfp/KAoVyjohm7WZkXyPHDjnepJw3k5S6a9ZaE05Q1ltOWUvzUpZ 9CKVCNhfE60CczVAakwpm5bDNgkOXxXzbPWUovPQ476VPxSeU0/pOfJW3pue2E9k6kETrv QDCfLG14ASQIpN6v0ndwHuXpUmKgWJMhyPunT05M4ZcXT4htux8vxSKxQoeQeXP1lS9nxR 7VqOrmiJyWd7NTF6u/A9sdPhvyEM40yHayE2JnfM1rYk8Amy02zSiD3L4VCwKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730257744; 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=bXw624RpiDulHWotygwKAo+XQYcDnQwCmAcTI2IshHw=; b=tEhmCnN43lX6lY1k+EtiMLOtRfTsBFueKjvsVk62EcrpLFLZycfNfmFwYHejpzW39JWRLR WXZPxlA4MRNr5M2IiL83zFkOsZRQLeLVjTswipk98mN8alHeaZgSP6qyudbGAKXjOI4al1 8PCUx7RB6tzEe6P6u1H5pIQP7nzLGTLxDQGLfLKbUtDnVbaAXfLqBvgbjPjFPhzpgmButy wCWfFIo7Y0gT93PEYyJsDIJYjpF2Ji7wax8W4jYVD+npy9AB2bLFf79ZadpwbayVJuLLav 7YgUEUwbFdw7MK6ax0cQwtkSD8nr9G9uFy/eJX+FvQo+NaC5kWUtVu/tK5diog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730257744; a=rsa-sha256; cv=none; b=Eun5zLx07e3PqsRFl1xSZIU+YHUYK2Ta/BSZ7vjCpIrRQZSXRHZI4vjHLLJNH3YwEDQk/8 vuC2xAkTIDXAOfROezVGpu1bnEMZwK12B7Mufln12clX0j+e4q2ozHAdHLAVT/h3G4n5Z7 qi8HfMXK57i5hxOAJ5KjJzPsFQb20l5r+Ptd2apKiD6n6wDCdZjbuTrRxCqJLiCtvoZDDS Wad6VHDinkvj0m0GxmIvJpiBFKy5yTFEgsPK8UAQ96Nm6MH5A6rlRStrQ5L+ABNB4iDWJK 3Yt3Jd8C+PpL/MThKQQh6NquV5D1aKeC5yqJ5R0wDRIRyq7FpVQ/pRkPjcebUg== 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 4XdXCN5g15zqwH; Wed, 30 Oct 2024 03:09:04 +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 49U394YO048664; Wed, 30 Oct 2024 03:09:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49U394ue048661; Wed, 30 Oct 2024 03:09:04 GMT (envelope-from git) Date: Wed, 30 Oct 2024 03:09:04 GMT Message-Id: <202410300309.49U394ue048661@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 03005c9195c7 - stable/14 - x86 specialreg.h: add all defined bits for %cr4 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 03005c9195c79ddbdba5c90019883d196fca1330 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=03005c9195c79ddbdba5c90019883d196fca1330 commit 03005c9195c79ddbdba5c90019883d196fca1330 Author: Konstantin Belousov AuthorDate: 2024-10-23 23:11:50 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-30 02:40:30 +0000 x86 specialreg.h: add all defined bits for %cr4 (cherry picked from commit cc11bc1150d59c3da5c7319c9a23b3e48b069f1f) --- sys/x86/include/specialreg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index c39cfa432d2f..d67112a3758b 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -84,6 +84,13 @@ #define CR4_SMAP 0x00200000 /* Supervisor-Mode Access Prevention */ #define CR4_PKE 0x00400000 /* Protection Keys Enable */ +#define CR4_CET 0x00800000 /* Control-flow Enforcement + Technology */ +#define CR4_PKS 0x01000000 /* Protection Keys for Supervisor */ +#define CR4_UINTR 0x02000000 /* User Interrupts Enable */ +#define CR4_LASS 0x08000000 /* Linear Address Space Separation */ +#define CR4_LAM_SUP 0x10000000 /* Linear-Address Masking for + Supervisor */ /* * Bits in AMD64 special registers. EFER is 64 bits wide.