Skip to content

Commit 1ba2dec

Browse files
authored
Merge pull request #445 from Freax13/enhancement/expose-cr3-write-raw
expose `Cr3::write_raw`
2 parents 451ca2e + c3eaa09 commit 1ba2dec

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
@@ -352,7 +352,7 @@ mod x86_64 {
352352
/// Changing the level 4 page table is unsafe, because it's possible to violate memory safety by
353353
/// changing the page mapping.
354354
#[inline]
355-
unsafe fn write_raw(frame: PhysFrame, val: u16) {
355+
pub unsafe fn write_raw(frame: PhysFrame, val: u16) {
356356
let addr = frame.start_address();
357357
let value = addr.as_u64() | val as u64;
358358

0 commit comments

Comments
 (0)