feat(loader, kernel): impl part of loader and initialize kernel structure

This commit is contained in:
2026-04-11 09:42:09 +08:00
parent 1233ae9e9b
commit 34ccf69569
53 changed files with 1743 additions and 777 deletions

View File

@@ -0,0 +1,7 @@
const boot_consts = @cImport({
@cInclude("boot.h");
});
pub const BOOT_HEAP_SIZE: usize = boot_consts.BOOT_HEAP_SIZE;
pub const BOOT_STACK_SIZE: usize = boot_consts.BOOT_STACK_SIZE;
pub const LOAD_PHYSICAL_ADDR: usize = boot_consts.LOAD_PHYSICAL_ADDR;