aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/src/lib.rs
blob: 7893919d00e739a9a23a127504f1149bd98ff936 (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 %d\n".as_ptr(), 69);
    thread_exit();
}

extern {
    fn thread_exit();
    fn printf(format: *const u8, ...);
}