1
0
Fork 0
forked from AbleOS/ableos
ableOS_v1Change/kernel/src/kmain.rs

16 lines
437 B
Rust
Raw Normal View History

2022-12-06 18:10:38 -06:00
//! AbleOS Kernel Entrypoint
2023-03-30 16:06:59 -05:00
pub fn kmain(cmdline: &str, bootstrap: Option<&'static [u8]>) -> ! {
log::debug!("Entered kmain");
2023-01-19 16:30:45 -06:00
// TODO: Actual cmdline parsing (Serde?)
if cmdline.contains("baka=9") {
let _ = crate::arch::log(format_args!(include_str!("../data/⑨. バカ")));
}
2023-03-19 07:30:04 -05:00
log::info!("Cmdline: \"{cmdline}\"");
2023-03-30 16:06:59 -05:00
let bootstrap = bootstrap.expect("no bootstrap found");
2022-12-22 10:22:11 -06:00
2022-12-07 18:26:43 -06:00
crate::arch::sloop()
2022-12-06 18:10:38 -06:00
}