Skip to content

Commit c3eaa09

Browse files
committed
expose Cr3::write_raw
We already expose `Cr3::read_raw`, so we might as well expose the write variant.
1 parent 22066fa commit c3eaa09

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
@@ -325,7 +325,7 @@ mod x86_64 {
325325
/// Changing the level 4 page table is unsafe, because it's possible to violate memory safety by
326326
/// changing the page mapping.
327327
#[inline]
328-
unsafe fn write_raw(frame: PhysFrame, val: u16) {
328+
pub unsafe fn write_raw(frame: PhysFrame, val: u16) {
329329
let addr = frame.start_address();
330330
let value = addr.as_u64() | val as u64;
331331

0 commit comments

Comments
 (0)