RefCell->UPSafeCell
This commit is contained in:
parent
5a40784918
commit
f1aabb5e0e
12 changed files with 65 additions and 22 deletions
|
@ -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],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue