aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-24 15:08:20 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-24 15:08:20 +0100
commiteba74d74502641a4565dc6011db33742e8450680 (patch)
treef7785882d1084944b309bd777d4663112823070a /rust/src
parent0960f519d9e1e3c108b1825a0ec241b1c56c5cca (diff)
downloadpintos-rs-eba74d74502641a4565dc6011db33742e8450680.tar.gz
move rust "libc" to separate crate and link with that instead
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/lib.rs16
1 files changed, 0 insertions, 16 deletions
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);
-}