ableos_userland/programs/wasm_syscall_test/src/main.rs
2023-04-06 16:25:34 -05:00

20 lines
250 B
Rust

#![no_std]
#![no_main]
#[no_mangle]
fn _start() {
unsafe {
let abc = read_mem_addr(13);
}
}
extern "C" {
fn read_mem_addr(address: usize) -> u64;
}
#[panic_handler]
fn panic(info: &core::panic::PanicInfo) -> ! {
loop {}
}