kernel: services: fix build on riscv

Somehow the build broke. Oops.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-30 00:36:39 +08:00
parent 25824df335
commit bc92f4b042

View file

@ -1100,6 +1100,7 @@ impl SystemServices {
let current_pid = self.current_pid();
let src_mapping = self.get_process(current_pid)?.mapping;
let dest_mapping = self.get_process(dest_pid)?.mapping;
use crate::mem::MemoryManager;
MemoryManager::with_mut(|mm| {
// Locate an address to fit the new memory.
dest_mapping.activate()?;
@ -1181,6 +1182,7 @@ impl SystemServices {
let current_pid = self.current_pid();
let src_mapping = self.get_process(current_pid)?.mapping;
let dest_mapping = self.get_process(dest_pid)?.mapping;
use crate::mem::MemoryManager;
MemoryManager::with_mut(|mm| {
let mut error = None;