forked from AbleOS/ableos_userland
20 lines
250 B
Rust
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 {}
|
|
}
|