feat: Preparing to implement the scheduler

This commit is contained in:
ParrotXray 2025-10-18 22:29:12 +08:00
parent af04b184f4
commit 939705bd40
5 changed files with 21 additions and 0 deletions

18
Cargo.lock generated
View File

@ -22,6 +22,12 @@ version = "1.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
[[package]]
name = "autocfg"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "bincode"
version = "1.3.3"
@ -125,6 +131,17 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e763eef8846b13b380f37dfecda401770b0ca4e56e95170237bd7c25c7db3582"
[[package]]
name = "corosensei"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d46a43097861058cb45affe888e40ba19b57a8210650144cdc7b50c9d87840a"
dependencies = [
"autocfg",
"cfg-if",
"scopeguard",
]
[[package]]
name = "crc"
version = "3.3.0"
@ -170,6 +187,7 @@ dependencies = [
"acpi",
"bootloader_api",
"conquer-once",
"corosensei",
"crossbeam-queue",
"futures-util",
"lazy_static",

View File

@ -7,6 +7,7 @@ edition = "2021"
bootloader_api = "0.11.12"
lazy_static = { version = "1.5.0", features = ["spin_no_std"] }
x86_64 = { version = "0.15.2", features = ["instructions"] }
corosensei = { version = "0.3.1", default-features = false }
spin = "0.10.0"
raw-cpuid = "11.6.0"
acpi = "6.0.1"

View File

@ -24,6 +24,7 @@ pub mod kernel;
pub mod drivers;
pub mod shell;
pub mod task;
mod process;
use hal::cpu;
const CONFIG: BootloaderConfig = {

View File

@ -0,0 +1 @@
mod scheduler;

View File