mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2026-10-23 06:57:36 -06:00
load elf file
This commit is contained in:
1 parent
6203392407
commit
aa00e9728d
2 files changed
+22
-9
No files matched your search
@@ -1,3 +1,14 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_info: &PanicInfo) -> ! {
|
||||
loop {} // or call your ABI trap, or `abort()`
|
||||
}
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
loop {}
|
||||
}
|
||||
Reference in new issue
Block a user