aboutsummaryrefslogtreecommitdiffstats
path: root/halt/src/lib.rs
blob: 43470b2f6d197c6bd9e4451eab505b727db05763 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![no_std]
//#![feature(asm)]
//#![feature(link_args)]
//#![link_args = "-L -lpintos"]

#[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);
}