feat(OS): Create basic kernel that can be run through both QEMU and on hardware (#1)

Reviewed-on: #1
This commit is contained in:
2025-07-20 21:15:05 +02:00
parent 2b6df6578e
commit f0ae99f652
10 changed files with 791 additions and 1 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 {}
}