Refactor
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user