From nobody Tue Nov 26 18:16:37 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 4XyW452NGcz5dnvM; Tue, 26 Nov 2024 18:16:37 +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 4XyW451ljVz556F; Tue, 26 Nov 2024 18:16:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732644997; 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=2cM02Rcmc//bHmCKWNVWoYF7480xHPFMaqH5judh228=; b=WZrgsY0eiPaoxGSr9POthF0/Gs/oJ+8GKEb/bZkMVNp90Iuuyp+v+wo53PnuJtl7yuK/Ck iKSsB6T61/KvG/LBa3Ov3m5+XVKX5zYMD5CsxdrSl3yC/uhtJ1cEppAB6mhhBMn55x4qrN rjJpXEXeq4OuaZklAKFx1SksdAS0WzsUmz8xZEjCVJ2mGmdMwRTn46UEMwyePWYNkkaaob GrDuSHvrO/4uNQ9bU0PuN7UHMkZ8F7IFM8Ct3w24rWtRvZU/E+iCVTONa+eVc7Bh0JDGnS FF7wLql9YmWTil+yUov81tA8BbtqwW9Bamtv9JlRBOWVs4N3pfeEHQtijOK/BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732644997; 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=2cM02Rcmc//bHmCKWNVWoYF7480xHPFMaqH5judh228=; b=A+iQlQDRe5hPX8LBM9JeFTCu4ljUjUYZc2B1aiJ5MGl72ywi8uFf7BSUfsO6Xa6PjF4lXo 5663JH4m0cwNkzXZ6gS9QWiyc8a85FY7cDIM4X9g5B2pPT79GTQAAP1WLMKgo6f6kkZser Bq1y+wYlLLwTJ+wWJhbjpJv92MEA0g3TJQESNZq5r4hYXbATsNKUIaRPuwxTlneER0ls6Y yl1q3lv0EG5Z6n96toHR/5Wccbuu2qYaZcAKnDemizkBFI8+LTEz0qk4hFV9KG1Iec6kIG KCrvoA101x69meglNVSEdiY/8LLBXR9v9DpkgOK4Af60h+6OY/c29Qz8nrhX8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732644997; a=rsa-sha256; cv=none; b=T86Zzbh3ag2EZVC7fDGZK3NmXlcdlZJUNEuTfx5H0oOOxCtBdKgzPs2MewHE6GxxjKJkSN +/FsYkycLPApDEXW5OV2liMUH2tOoXANfRvii2NfgZgFsvFZRcH9SDbzR3o8ueXnBryXNx i2HONsFw6+x6aR3Qfy1zWJI8Ys3jYfCBdwd6zTf64RspYC4EVQQmFJeNv75QkGoGIa7iqF QLrn/asU8AbR3T/Q5WH0ycO93wv/8D216AfZI5dMgGFKVxWgCcKN5e1shg2DYnsswK3kzB 8uQ1078jm8v5/YrUz/rJfr0Fl4JtDEmAFh3RPZCqVRFkl3hihXpr1MsfVqCqkQ== 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 4XyW451MMbzc5M; Tue, 26 Nov 2024 18:16:37 +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 4AQIGbHK074746; Tue, 26 Nov 2024 18:16:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AQIGb8w074743; Tue, 26 Nov 2024 18:16:37 GMT (envelope-from git) Date: Tue, 26 Nov 2024 18:16:37 GMT Message-Id: <202411261816.4AQIGb8w074743@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: b42b18fb24f5 - main - x86: Add definitions for XSAVE state component information 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: b42b18fb24f58d9b3d8b60d6901e582d407521d6 Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=b42b18fb24f58d9b3d8b60d6901e582d407521d6 commit b42b18fb24f58d9b3d8b60d6901e582d407521d6 Author: Bojan Novković AuthorDate: 2024-11-26 17:48:46 +0000 Commit: Bojan Novković CommitDate: 2024-11-26 18:16:05 +0000 x86: Add definitions for XSAVE state component information Reviewed by: kib --- sys/x86/include/specialreg.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index 51c513b6a5ab..9dc30e31e540 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -386,6 +386,14 @@ #define CPUID_EXTSTATE_XINUSE 0x00000004 #define CPUID_EXTSTATE_XSAVES 0x00000008 +/* + * CPUID instruction 0xd Processor Extended State Enumeration + * Sub-leaf > 1 ecx info + */ +#define CPUID_EXTSTATE_SUPERVISOR 0x00000001 +#define CPUID_EXTSTATE_ALIGNED 0x00000002 +#define CPUID_EXTSTATE_XFD_SUPPORTED 0x00000004 + /* * AMD extended function 8000_0007h ebx info */