diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..9d6883f --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "illuminance" +version = "1.0.0" diff --git a/Cargo.toml b/Cargo.toml index 521a155..7b92f80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "illuminance" version = "1.0.0" -edition = "2026" +edition = "2024" [dependencies] diff --git a/src/arch/mod.rs b/src/arch/mod.rs new file mode 100644 index 0000000..0bffdbe --- /dev/null +++ b/src/arch/mod.rs @@ -0,0 +1 @@ +pub mod x86_64; \ No newline at end of file diff --git a/src/arch/x86_64/mod.rs b/src/arch/x86_64/mod.rs new file mode 100644 index 0000000..ab0c014 --- /dev/null +++ b/src/arch/x86_64/mod.rs @@ -0,0 +1 @@ +// \ No newline at end of file diff --git a/src/kernel/init.rs b/src/kernel/init.rs new file mode 100644 index 0000000..b5673eb --- /dev/null +++ b/src/kernel/init.rs @@ -0,0 +1,3 @@ +pub fn init() { + // something something init kernel +} \ No newline at end of file diff --git a/src/kernel/mod.rs b/src/kernel/mod.rs index 354e559..639a6c5 100644 --- a/src/kernel/mod.rs +++ b/src/kernel/mod.rs @@ -1 +1 @@ -// TODO: write this \ No newline at end of file +pub mod init; \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 4d42e4c..4e17f08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,16 @@ #![no_std] #![no_main] +mod arch; mod kernel; +#[unsafe(no_mangle)] +pub extern "C" fn _start() -> ! { + kernel::init::init(); + + loop {} +} + #[panic_handler] // providing a panic handler since there is no std fn panic(_info: &core::panic::PanicInfo) -> !/*<-- function will never return (loop {} = while True(){})*/ { loop {}