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 --- halt-rs/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 halt-rs/src/lib.rs (limited to 'halt-rs/src') diff --git a/halt-rs/src/lib.rs b/halt-rs/src/lib.rs new file mode 100644 index 0000000..5455087 --- /dev/null +++ b/halt-rs/src/lib.rs @@ -0,0 +1,13 @@ +#![no_std] + +use libpintos::exit; + +#[panic_handler] +fn panic(_info: &core::panic::PanicInfo) -> ! { + loop {} +} + +#[no_mangle] +pub unsafe extern "C" fn entry() { + exit(0x69); +} -- cgit v1.2.1