forked from AbleOS/ableos
16 lines
437 B
Rust
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()
|
|
}
|