create thread and scheduler base files
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:
Julien CLEMENT 2022-12-29 18:58:48 +01:00
parent 7a443723e5
commit 9199c60948
4 changed files with 13 additions and 0 deletions

@ -8,6 +8,7 @@ mod fd;
mod fs; mod fs;
mod interrupts; mod interrupts;
mod memory; mod memory;
mod proc;
mod syscalls; mod syscalls;
mod task; mod task;
mod utils; mod utils;

2
src/proc/mod.rs Normal file

@ -0,0 +1,2 @@
pub mod thread;
pub mod scheduler;

@ -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

@ -0,0 +1,3 @@
pub struct Thread {
rsp: u64
}