This commit is contained in:
2026-02-25 14:08:27 +01:00
parent 8a8034bd11
commit 4dc05c4151
23 changed files with 554 additions and 66 deletions

View File

@@ -1,3 +1,7 @@
//! Kernel initialization and supervisor entry point.
//!
//! This module sets up the global heap, initializes core subsystems (VGA, filesystem,
//! scheduler, and logging), and starts initial processes.
#![no_std]
#![no_main]
#![allow(static_mut_refs)]
@@ -43,7 +47,7 @@ pub const HEAP_SIZE: usize = 1024 * 1024; // 1Mo RAM
static HEAP: Heap = Heap::empty();
// Usize is assumed to be an u64 in the whole kernel
const _: () = assert!(size_of::<usize>() == size_of::<u64>());
const _: () = assert!(core::mem::size_of::<usize>() == core::mem::size_of::<u64>());
#[unsafe(no_mangle)]
pub extern "C" fn supervisor_mode_entry() {