ableos/kernel/src/kmain.rs
2023-03-30 23:43:04 +02:00

16 lines
437 B
Rust

//! AbleOS Kernel Entrypoint
pub fn kmain(cmdline: &str, bootstrap: Option<&'static [u8]>) -> ! {
log::debug!("Entered kmain");
// TODO: Actual cmdline parsing (Serde?)
if cmdline.contains("baka=9") {
let _ = crate::arch::log(format_args!(include_str!("../data/⑨. バカ")));
}
log::info!("Cmdline: \"{cmdline}\"");
let bootstrap = bootstrap.expect("no bootstrap found");
crate::arch::sloop()
}