Create a basic setup that can start a kernel with cargo

This kernel loops indefenitely without doing something. Later will be extended apon

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2025-07-20 19:53:40 +02:00
parent 9401ebccfc
commit 8023048cef
8 changed files with 758 additions and 2 deletions

12
kernel/Cargo.toml Normal file
View File

@@ -0,0 +1,12 @@
[package]
name = "kernel"
version = "0.1.0"
edition.workspace = true
license-file.workspace = true
authors.workspace = true
readme.workspace = true
publish.workspace = true
[dependencies]
bootloader_api = { version = "0.11.10" }

16
kernel/src/main.rs Normal file
View File

@@ -0,0 +1,16 @@
#![no_std]
#![no_main]
use bootloader_api::{entry_point, BootInfo};
entry_point!(kernel_main);
fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
loop {}
}
#[panic_handler]
#[cfg(not(test))]
fn panic(info: &core::panic::PanicInfo) -> ! {
loop {}
}