From nobody Thu Oct 24 02:41:42 2024 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 4XYqtb0L7Rz5ZyD2; Thu, 24 Oct 2024 02:41:43 +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 4XYqtZ6Zytz44rb; Thu, 24 Oct 2024 02:41:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729737702; 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=xzDjIUqhInAhdUB0OIRYlVOSr/idBZbR7YgwhVTg4gc=; b=vk1PHrFrQ30L100YrjWMyXZ1a/mruyNq07SWOGXmTqPdclrDYO+SN4Hj14R7zGsU7DXIcs ETrCLiXZSOqYrbzEErEPm9JfiHWgNXbq2Iw5whF3bke1FiSeWrLvW4TiBgis0GdWvKLIVe YkPf0esDre6l7E/NoMITejcwrKKgyY4ZLO4Y/30ig6mFcVXWH7zNf3gWVJ+3djmOW5IIhT rcNnWGWeBzRPCi9pqr7OIdcuYhVNI30MQX5rYSmZ4GzAeBLCoCW4eWrlwBxvBk0lRZGyM8 H3uYOzn/jeKDwRPhTwisWfQVRDxrKl7F8D3sOPGMvS68r/iCbdSifMXMerM3QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729737702; 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=xzDjIUqhInAhdUB0OIRYlVOSr/idBZbR7YgwhVTg4gc=; b=b8m2HZ5f8yEI83MSa7cOGg9gpw98AhnVzzY8eyZan9da4FL6t0DUYB4XYXPcaa6bwDJUbr 2oydj70bR+fWwLBZzFlnqRpSGPRwwaj/CFqrtCQKwWQifFAoiARqYL4+Vzv0ASKrm8GIkN 9dG/9wEdxBQ+uQBlr/0K08cKIdV+muVGZG5QkRw5Fh8KcmImCYWJv8UyWu3Sr4BWkjMr2D 7J088HNDZROv+5fM5lHPoCPmvYAmp+LZCUAHtkTNcFyZfKqfZdQQDQRWr1ifRm5weHTIVW DeaYpWWprQBo9IL70IQAIMJ/M8jrq4mAeqvUsUjRQ3RIWyv6HkQbg3IRvuQM8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729737702; a=rsa-sha256; cv=none; b=Vn7R//S1u08+YPfaqPrrdH0h4tlkdCyzjoSreR8HsEWdxT4s3sxWng376zC43ivLJ0y38L Drqg5JiAFCea2CWwJyqXpH27WPd6MRpQxq2En81qMJgt4nfszLskiOtafQANIdY3OsdEmk 1jPsWTnfR0uUCZo42wG3/O7e6Ds08c45ODgXxAYYsIH1S4Wgi2k1ytRzuC1QGC84tMjTPo E4tqnbRCXwNXNIQtEyEh91pkX0Y7wmZdrNwtMDNCZOmwh2i59f73pYG0XJlGZhQlYSV6PV Cwoha21Jjs8nPbQd1x/9an04D8FfEwmW0eoiCyGgrYz3m5/u9wmvl0jfnZw1pQ== 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 4XYqtZ6BWbzPD0; Thu, 24 Oct 2024 02:41:42 +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 49O2fgGA078564; Thu, 24 Oct 2024 02:41:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49O2fgga078561; Thu, 24 Oct 2024 02:41:42 GMT (envelope-from git) Date: Thu, 24 Oct 2024 02:41:42 GMT Message-Id: <202410240241.49O2fgga078561@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: cc11bc1150d5 - main - x86 specialreg.h: add all defined bits for %cr4 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: cc11bc1150d59c3da5c7319c9a23b3e48b069f1f Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=cc11bc1150d59c3da5c7319c9a23b3e48b069f1f commit cc11bc1150d59c3da5c7319c9a23b3e48b069f1f Author: Konstantin Belousov AuthorDate: 2024-10-23 23:11:50 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-24 02:41:10 +0000 x86 specialreg.h: add all defined bits for %cr4 taken from Intel SDM rev. 085 Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 b88c3e46000a..93690b94d2c3 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -82,6 +82,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.