From 3fa2e4e43a8c0f581c85fd55162ddd5f30ccd57c Mon Sep 17 00:00:00 2001 From: GnoCiYeH Date: Sun, 28 Apr 2024 13:53:54 +0800 Subject: [PATCH] Fix WAITPKG flag of ExtendedFeaturesEcx structure --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 739ac8a..e9f6df2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3768,7 +3768,7 @@ bitflags! { /// Bit 04: OSPKE. If 1, OS has set CR4.PKE to enable protection keys (and the RDPKRU/WRPKRU instruc-tions). const OSPKE = 1 << 4; /// Bit 5: WAITPKG - const WAITPKG = 1 >> 5; + const WAITPKG = 1 << 5; /// Bit 6: AV512_VBMI2 const AVX512VBMI2 = 1 << 6; /// Bit 7: CET_SS. Supports CET shadow stack features if 1. Processors that set this bit define bits 0..2 of the