first commit

This commit is contained in:
clizia 2025-08-23 02:35:47 +02:00
commit 071faa80e6
3 changed files with 40 additions and 0 deletions

17
src/main.rs Normal file
View file

@ -0,0 +1,17 @@
#![no_std]
#![no_main]
use core::panic::PanicInfo;
// this function is the entry point since the linker
// looks for a function named `_start` by default
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
loop{}
}
// called on panic
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}