Merge branch 'xous-ipc-refactor' of github.com:betrusted-io/xous-core into xous-ipc-refactor

This commit is contained in:
bunnie 2021-04-06 16:56:01 +08:00
commit 0a7ab8294a

View file

@ -1147,6 +1147,10 @@ impl SystemServices {
}
let current_pid = self.current_pid();
// If it's within the same process, ignore the operation.
if current_pid == dest_pid {
return Ok(src_virt);
}
let src_mapping = self.get_process(current_pid)?.mapping;
let dest_mapping = self.get_process(dest_pid)?.mapping;
use crate::mem::MemoryManager;