Skip to content

Commit 4abf353

Browse files
committed
Cr4: Rename PROTECTION_KEY to PROTECTION_KEY_USER
Signed-off-by: Joe Richey <[email protected]>
1 parent 91214e2 commit 4abf353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registers/control.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ 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 = 1 << 22;
146+
const PROTECTION_KEY_USER = 1 << 22;
147147
/// Enables Control-flow Enforcement Technology (CET)
148148
///
149149
/// This enables the shadow stack feature, ensuring return addresses read

0 commit comments

Comments
 (0)