blob: d7dafa1253072c3524989e30debd8c84a2a33cfe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#![no_std]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
pub unsafe extern "C" fn syscall_handler() {
printf("c suger lmao xd\n".as_ptr());
thread_exit();
}
extern {
fn thread_exit();
fn printf(format: *const u8, ...);
}
|