Remove spin::Mutex in frame_allocator and memory_set.
This commit is contained in:
parent
32b85b1d0c
commit
37346c8d0f
5 changed files with 15 additions and 15 deletions
|
@ -29,7 +29,7 @@ impl TaskControlBlock {
|
|||
// map a kernel-stack in kernel space
|
||||
let (kernel_stack_bottom, kernel_stack_top) = kernel_stack_position(app_id);
|
||||
KERNEL_SPACE
|
||||
.lock()
|
||||
.exclusive_access()
|
||||
.insert_framed_area(
|
||||
kernel_stack_bottom.into(),
|
||||
kernel_stack_top.into(),
|
||||
|
@ -47,7 +47,7 @@ impl TaskControlBlock {
|
|||
*trap_cx = TrapContext::app_init_context(
|
||||
entry_point,
|
||||
user_sp,
|
||||
KERNEL_SPACE.lock().token(),
|
||||
KERNEL_SPACE.exclusive_access().token(),
|
||||
kernel_stack_top,
|
||||
trap_handler as usize,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue