Files
picocalc-os-rs/user-apps/calculator/src/main.rs
sawyer bristol 6dcdd88a0f can run entrypoint on user elf
syscalls via call_abi are still not working
2025-08-03 18:55:26 -06:00

27 lines
497 B
Rust

#![no_std]
#![no_main]
use abi::{Syscall, call_abi};
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
loop {
for i in 0..300 {
for o in 0..300 {
let call = Syscall::DrawPixel {
x: i,
y: o,
color: 0,
};
unsafe { call_abi(&call) };
}
}
}
}