mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
retrieve tid as well as pid when invoking swapper
This commit is contained in:
parent
feefb57791
commit
4db82e01d8
1 changed files with 8 additions and 1 deletions
|
|
@ -926,7 +926,14 @@ pub fn ensure_page_exists_inner(address: usize) -> Result<usize, xous_kernel::Er
|
|||
#[cfg(feature = "swap")]
|
||||
if flags & MMUFlags::P.bits() != 0 {
|
||||
// page is swapped; fill page, map and return
|
||||
Swap::with_mut(|s| s.retrieve_page(crate::arch::process::current_pid(), virt, new_page))
|
||||
Swap::with_mut(|s| {
|
||||
s.retrieve_page(
|
||||
crate::arch::process::current_pid(),
|
||||
crate::arch::process::current_tid(),
|
||||
virt,
|
||||
new_page,
|
||||
)
|
||||
})
|
||||
|
||||
// the execution flow diverges from here: it returns via the interrupt context handler. -> !
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue