create thread and scheduler base files
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
7a443723e5
commit
9199c60948
@ -8,6 +8,7 @@ mod fd;
|
||||
mod fs;
|
||||
mod interrupts;
|
||||
mod memory;
|
||||
mod proc;
|
||||
mod syscalls;
|
||||
mod task;
|
||||
mod utils;
|
||||
|
2
src/proc/mod.rs
Normal file
2
src/proc/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod thread;
|
||||
pub mod scheduler;
|
7
src/proc/scheduler/mod.rs
Normal file
7
src/proc/scheduler/mod.rs
Normal file
@ -0,0 +1,7 @@
|
||||
use super::thread::Thread;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
pub struct Scheduler {
|
||||
threads: Vec<Thread>,
|
||||
}
|
3
src/proc/thread/mod.rs
Normal file
3
src/proc/thread/mod.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub struct Thread {
|
||||
rsp: u64
|
||||
}
|
Loading…
Reference in New Issue
Block a user