Skip to content

Commit

Permalink
Cr4: Rename PROTECTION_KEY to PROTECTION_KEY_USER
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Richey <joerichey@google.com>
  • Loading branch information
josephlr committed Jul 16, 2021
1 parent 518a727 commit 6d59749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registers/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ bitflags! {
///
/// Also enables access to the PKRU register (via the `RDPKRU`/`WRPKRU`
/// instructions) to set user-mode protection key access controls.
const PROTECTION_KEY = 1 << 22;
const PROTECTION_KEY_USER = 1 << 22;
/// Enables Control-flow Enforcement Technology (CET)
///
/// This enables the shadow stack feature, ensuring return addresses read
Expand Down

0 comments on commit 6d59749

Please sign in to comment.