From 6346c4c9433373b9abbbbac1ef2a1f07cefdfacb Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Wed, 27 Jan 2021 07:29:46 +0800 Subject: [PATCH] Do not clone KERNEL_SPACE in mm::init --- os/src/mm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/src/mm/mod.rs b/os/src/mm/mod.rs index cdf71da1..b57d1002 100644 --- a/os/src/mm/mod.rs +++ b/os/src/mm/mod.rs @@ -20,5 +20,5 @@ pub use memory_set::remap_test; pub fn init() { heap_allocator::init_heap(); frame_allocator::init_frame_allocator(); - KERNEL_SPACE.clone().lock().activate(); + KERNEL_SPACE.lock().activate(); }