mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add missing args to flush syscall
This commit is contained in:
parent
d5d5f8bb74
commit
979ce7a589
1 changed files with 7 additions and 4 deletions
|
|
@ -685,10 +685,13 @@ impl Swap {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This passes on to the userspace handler a page that needs to be written to SPI flash.
|
/// This passes on to the userspace handler a page that needs to be written to SPI flash.
|
||||||
pub fn flush_page_syscall(&mut self, target_vaddr_in_pid: usize, paddr: usize) -> ! {
|
pub fn flush_page_syscall(
|
||||||
let target_pid = crate::arch::process::current_pid();
|
&mut self,
|
||||||
let target_tid = crate::arch::process::current_tid();
|
target_vaddr_in_pid: usize,
|
||||||
|
paddr: usize,
|
||||||
|
target_pid: PID,
|
||||||
|
target_tid: usize,
|
||||||
|
) -> ! {
|
||||||
let block_vaddr_in_swap =
|
let block_vaddr_in_swap =
|
||||||
crate::arch::mem::map_page_to_swapper(paddr).expect("couldn't map target page to swapper");
|
crate::arch::mem::map_page_to_swapper(paddr).expect("couldn't map target page to swapper");
|
||||||
// we are now in the swapper's memory space
|
// we are now in the swapper's memory space
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue