yay! it compiles
This commit is contained in:
Generated
+7
@@ -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"
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "illuminance"
|
name = "illuminance"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
edition = "2026"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
pub mod x86_64;
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
//
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
pub fn init() {
|
||||||
|
// something something init kernel
|
||||||
|
}
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
// TODO: write this
|
pub mod init;
|
||||||
@@ -1,8 +1,16 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
|
mod arch;
|
||||||
mod kernel;
|
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
|
#[panic_handler] // providing a panic handler since there is no std
|
||||||
fn panic(_info: &core::panic::PanicInfo) -> !/*<-- function will never return (loop {} = while True(){})*/ {
|
fn panic(_info: &core::panic::PanicInfo) -> !/*<-- function will never return (loop {} = while True(){})*/ {
|
||||||
loop {}
|
loop {}
|
||||||
|
|||||||
Reference in New Issue
Block a user