From eba74d74502641a4565dc6011db33742e8450680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 24 Nov 2020 15:08:20 +0100 Subject: move rust "libc" to separate crate and link with that instead --- rust/src/lib.rs | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 rust/src/lib.rs (limited to 'rust/src') diff --git a/rust/src/lib.rs b/rust/src/lib.rs deleted file mode 100644 index e64fbbd..0000000 --- a/rust/src/lib.rs +++ /dev/null @@ -1,16 +0,0 @@ -#![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); -} -- cgit v1.2.1