Implement sys_read && allocate pid and kernel stack dynamically.
This commit is contained in:
parent
1bc53c0b5f
commit
eddbc8954c
7 changed files with 162 additions and 19 deletions
|
@ -3,6 +3,7 @@ mod switch;
|
|||
mod task;
|
||||
mod manager;
|
||||
mod processor;
|
||||
mod pid;
|
||||
|
||||
use crate::loader::{get_num_app, get_app_data};
|
||||
use crate::trap::TrapContext;
|
||||
|
@ -14,6 +15,7 @@ use alloc::vec::Vec;
|
|||
use alloc::sync::Arc;
|
||||
use spin::Mutex;
|
||||
use manager::fetch_task;
|
||||
use pid::{PidHandle, pid_alloc, KernelStack};
|
||||
|
||||
pub use context::TaskContext;
|
||||
pub use processor::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue