RefCell->UPSafeCell

This commit is contained in:
Yifan Wu 2021-07-09 21:18:51 +08:00
parent 5a40784918
commit f1aabb5e0e
12 changed files with 65 additions and 22 deletions

View file

@ -3,11 +3,13 @@ use crate::task::TaskContext;
use crate::config::*;
#[repr(align(4096))]
#[derive(Copy, Clone)]
struct KernelStack {
data: [u8; KERNEL_STACK_SIZE],
}
#[repr(align(4096))]
#[derive(Copy, Clone)]
struct UserStack {
data: [u8; USER_STACK_SIZE],
}