From e8c4847b129d40d66274ca7efbfd2986d97fef5f Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Fri, 10 Jan 2025 11:53:02 -0800 Subject: [PATCH] Initial code --- thousand-line-os/Cargo.lock | 7 +++++++ thousand-line-os/Cargo.toml | 6 ++++++ thousand-line-os/src/lib.rs | 14 ++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 thousand-line-os/Cargo.lock create mode 100644 thousand-line-os/Cargo.toml create mode 100644 thousand-line-os/src/lib.rs diff --git a/thousand-line-os/Cargo.lock b/thousand-line-os/Cargo.lock new file mode 100644 index 0000000..0e9e63c --- /dev/null +++ b/thousand-line-os/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "thousand-line-os" +version = "0.1.0" diff --git a/thousand-line-os/Cargo.toml b/thousand-line-os/Cargo.toml new file mode 100644 index 0000000..6be5978 --- /dev/null +++ b/thousand-line-os/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "thousand-line-os" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/thousand-line-os/src/lib.rs b/thousand-line-os/src/lib.rs new file mode 100644 index 0000000..f766ec5 --- /dev/null +++ b/thousand-line-os/src/lib.rs @@ -0,0 +1,14 @@ +#![no_std] +#![no_main] + +#[no_mangle] +pub extern "C" fn _start() -> ! { + init() +} + +fn init() -> ! { + loop { + + } +} +