first commit
This commit is contained in:
commit
071faa80e6
3 changed files with 40 additions and 0 deletions
17
src/main.rs
Normal file
17
src/main.rs
Normal 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 {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue