mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix debug va
This commit is contained in:
parent
c9ac6142b5
commit
5813cee4f7
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ fn write_to_swap_inner(
|
|||
|
||||
// step 2: write the page to swap
|
||||
#[cfg(feature = "debug-print")]
|
||||
writeln!(DebugUart {}, "WTS PID{} VA {:x}", candidate.raw_pid(), vaddr_in_swap).ok();
|
||||
writeln!(DebugUart {}, "WTS PID{} VA {:x}", candidate.raw_pid(), candidate.vaddr()).ok();
|
||||
// this is safe because the page is aligned and initialized as it comes from the kernel
|
||||
// remember that this page is overwritten with encrypted data
|
||||
let buf: &mut [u8] = unsafe { core::slice::from_raw_parts_mut(vaddr_in_swap as *mut u8, PAGE_SIZE) };
|
||||
|
|
|
|||
Loading…
Reference in a new issue