2024-03-26 15:15:06 +01:00
|
|
|
#![no_std]
|
|
|
|
|
#![no_main]
|
|
|
|
|
|
2024-03-27 16:29:04 +01:00
|
|
|
use std::println;
|
|
|
|
|
|
2024-03-26 15:15:06 +01:00
|
|
|
#[no_mangle]
|
|
|
|
|
pub extern "C" fn kernel_main() -> ! {
|
2024-03-27 16:29:04 +01:00
|
|
|
let a = 4;
|
|
|
|
|
println!("Hiii :3");
|
|
|
|
|
println!("{}", a);
|
2024-03-26 15:15:06 +01:00
|
|
|
loop {}
|
|
|
|
|
}
|
2024-03-27 16:29:04 +01:00
|
|
|
|
2024-03-26 15:15:06 +01:00
|
|
|
#[panic_handler]
|
|
|
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
|
|
|
loop {}
|
|
|
|
|
}
|