Sync computers

This commit is contained in:
2026-02-28 18:55:10 +01:00
parent c3eb93e701
commit 9a983c56f3
29 changed files with 1564 additions and 28 deletions

View File

@@ -5,7 +5,8 @@
//! and a simple round-robin scheduler used by the kernel.
use core::{arch::riscv64::wfi, array, cell::LazyCell, time::Duration};
use alloc::string::String;
use alloc::{boxed::Box, string::String};
use hashbrown::HashMap;
use log::info;
use crate::{
@@ -43,6 +44,7 @@ pub static mut PROCESS_TABLE: LazyCell<[Process; PROCESS_COUNT]> = LazyCell::new
},
stack: [0; _],
entry: None,
fd_table: HashMap::new()
})
});
@@ -71,7 +73,7 @@ pub fn scheduler_init() {
}
}
create_process(&idle, "idle");
create_process(Box::new(idle), "idle");
unsafe {
PROCESS_TABLE[0].state = ProcessState::Active;
}