Sync computers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user