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

16 lines
429 B
Rust
Raw Normal View History

2022-12-06 18:10:38 -06:00
//! AbleOS Kernel Entrypoint
pub fn kmain(cmdline: &str, initrd: 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/⑨. バカ")));
}
log::info!("Cmdline: \"{cmdline}\"");
let initrd = initrd.expect("no initrd 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
}