user app can invoke kernel syscall!!!!

This commit is contained in:
2025-08-26 18:44:46 -06:00
parent 6dcdd88a0f
commit c4f2c6cffb
12 changed files with 201 additions and 170 deletions

View File

@@ -10,17 +10,15 @@ fn panic(_info: &PanicInfo) -> ! {
}
#[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) };
}
pub extern "C" fn _start() {
for i in 0..300 {
for o in 0..300 {
let call = Syscall::DrawPixel {
x: i,
y: o,
color: 0,
};
unsafe { call_abi(&call) };
}
}
}