aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/lib.rs
blob: e64fbbdf32ac63c83b1badb6faff604c31a4702b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]

#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
    loop {}
}

#[no_mangle]
pub unsafe extern "C" fn entry() {
    exit(0x69);
}

#[link(name="pintos", kind="static")]
extern {
    fn exit(status: i32);
}