diff --git a/src/lib.rs b/src/lib.rs index de964ea..8430153 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ mod fd; mod fs; mod interrupts; mod memory; +mod proc; mod syscalls; mod task; mod utils; diff --git a/src/proc/mod.rs b/src/proc/mod.rs new file mode 100644 index 0000000..5e8e105 --- /dev/null +++ b/src/proc/mod.rs @@ -0,0 +1,2 @@ +pub mod thread; +pub mod scheduler; \ No newline at end of file diff --git a/src/proc/scheduler/mod.rs b/src/proc/scheduler/mod.rs new file mode 100644 index 0000000..10d3957 --- /dev/null +++ b/src/proc/scheduler/mod.rs @@ -0,0 +1,7 @@ +use super::thread::Thread; + +use alloc::vec::Vec; + +pub struct Scheduler { + threads: Vec, +} \ No newline at end of file diff --git a/src/proc/thread/mod.rs b/src/proc/thread/mod.rs new file mode 100644 index 0000000..78fba03 --- /dev/null +++ b/src/proc/thread/mod.rs @@ -0,0 +1,3 @@ +pub struct Thread { + rsp: u64 +} \ No newline at end of file