aboutsummaryrefslogtreecommitdiffstats
path: root/halt
diff options
context:
space:
mode:
Diffstat (limited to 'halt')
-rw-r--r--halt/Cargo.toml23
-rw-r--r--halt/main.c5
-rw-r--r--halt/rust-toolchain1
-rw-r--r--halt/rust.h1
-rw-r--r--halt/src/lib.rs19
5 files changed, 0 insertions, 49 deletions
diff --git a/halt/Cargo.toml b/halt/Cargo.toml
deleted file mode 100644
index 14c75e0..0000000
--- a/halt/Cargo.toml
+++ /dev/null
@@ -1,23 +0,0 @@
-[package]
-name = "halt"
-version = "0.1.0"
-authors = ["Gustav Sörnäs <gustav@sornas.net>"]
-edition = "2018"
-
-[lib]
-name = "halt"
-crate-type = ["staticlib"]
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[profile.dev]
-panic = "abort"
-
-[profile.release]
-panic = "abort"
-lto = true
-
-[dependencies.libc]
-version = "0.2"
-default-features = false
-features = ["extra_traits"]
diff --git a/halt/main.c b/halt/main.c
deleted file mode 100644
index c89be21..0000000
--- a/halt/main.c
+++ /dev/null
@@ -1,5 +0,0 @@
-#include "rust.h"
-
-void _start (int argc, char **argv) {
- main();
-}
diff --git a/halt/rust-toolchain b/halt/rust-toolchain
deleted file mode 100644
index adfa491..0000000
--- a/halt/rust-toolchain
+++ /dev/null
@@ -1 +0,0 @@
-nightly-i686-unknown-linux-gnu
diff --git a/halt/rust.h b/halt/rust.h
deleted file mode 100644
index eba2976..0000000
--- a/halt/rust.h
+++ /dev/null
@@ -1 +0,0 @@
-int main(void);
diff --git a/halt/src/lib.rs b/halt/src/lib.rs
deleted file mode 100644
index 43470b2..0000000
--- a/halt/src/lib.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-#![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);
-}