Skip to content

Commit

Permalink
Merge pull request #445 from Freax13/enhancement/expose-cr3-write-raw
Browse files Browse the repository at this point in the history
expose `Cr3::write_raw`
  • Loading branch information
Freax13 committed Jan 14, 2024
2 parents 451ca2e + c3eaa09 commit 1ba2dec
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 @@ -352,7 +352,7 @@ mod x86_64 {
/// Changing the level 4 page table is unsafe, because it's possible to violate memory safety by
/// changing the page mapping.
#[inline]
unsafe fn write_raw(frame: PhysFrame, val: u16) {
pub unsafe fn write_raw(frame: PhysFrame, val: u16) {
let addr = frame.start_address();
let value = addr.as_u64() | val as u64;

Expand Down

0 comments on commit 1ba2dec

Please sign in to comment.