mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +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.
|
||||
pub fn flush_page_syscall(&mut self, target_vaddr_in_pid: usize, paddr: usize) -> ! {
|
||||
let target_pid = crate::arch::process::current_pid();
|
||||
let target_tid = crate::arch::process::current_tid();
|
||||
|
||||
pub fn flush_page_syscall(
|
||||
&mut self,
|
||||
target_vaddr_in_pid: usize,
|
||||
paddr: usize,
|
||||
target_pid: PID,
|
||||
target_tid: usize,
|
||||
) -> ! {
|
||||
let block_vaddr_in_swap =
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue