Skip to content

Commit b8acbda

Browse files
committed
Cr4: Add PROTECTION_KEY_USER
Deprecate PROTECTION_KEY Signed-off-by: Joe Richey <[email protected]>
1 parent 5af8aa8 commit b8acbda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/registers/control.rs

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ bitflags! {
143143
///
144144
/// Also enables access to the PKRU register (via the `RDPKRU`/`WRPKRU`
145145
/// instructions) to set user-mode protection key access controls.
146+
const PROTECTION_KEY_USER = 1 << 22;
147+
/// Alias for [`PROTECTION_KEY_USER`](Cr4Flags::PROTECTION_KEY_USER)
148+
#[deprecated(since = "0.14.5", note = "use `PROTECTION_KEY_USER` instead")]
146149
const PROTECTION_KEY = 1 << 22;
147150
/// Enables Control-flow Enforcement Technology (CET)
148151
///

0 commit comments

Comments
 (0)