mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
more tid recording
This commit is contained in:
parent
03388b1413
commit
504253a033
1 changed files with 14 additions and 2 deletions
|
|
@ -938,9 +938,21 @@ pub fn ensure_page_exists_inner(address: usize) -> Result<usize, xous_kernel::Er
|
|||
flush_mmu();
|
||||
|
||||
// if swap is activated, advise the swapper that data was allocated
|
||||
// not that the prior path on `retrieve_page` *won't* hit this call, because `retrieve_page` diverges.
|
||||
// note that the prior path on `retrieve_page` *won't* hit this call, because `retrieve_page`
|
||||
// diverges.
|
||||
#[cfg(feature = "swap")]
|
||||
Swap::with_mut(|s| s.advise_alloc(crate::arch::process::current_pid(), virt, new_page, true));
|
||||
{
|
||||
println!("ensure_page_exists_inner - advise alloc");
|
||||
Swap::with_mut(|s| {
|
||||
s.advise_alloc(
|
||||
crate::arch::process::current_pid(),
|
||||
crate::arch::process::current_tid(),
|
||||
virt,
|
||||
new_page,
|
||||
true,
|
||||
)
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Ok(new_page)
|
||||
|
|
|
|||
Loading…
Reference in a new issue