yay! it compiles
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
mod arch;
|
||||
mod kernel;
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
kernel::init::init();
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[panic_handler] // providing a panic handler since there is no std
|
||||
fn panic(_info: &core::panic::PanicInfo) -> !/*<-- function will never return (loop {} = while True(){})*/ {
|
||||
loop {}
|
||||
|
||||
Reference in New Issue
Block a user