mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Refactor boot and add placeholder kcmdline struct
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
eb8eb440b3
commit
69cbfc72f5
@ -18,6 +18,7 @@
|
||||
extern crate alloc;
|
||||
|
||||
pub mod arch;
|
||||
pub mod boot;
|
||||
pub mod bus;
|
||||
pub mod config;
|
||||
pub mod cpu;
|
||||
@ -44,9 +45,10 @@ use trapframe::TrapFrame;
|
||||
static mut IRQ_CALLBACK_LIST: Vec<IrqCallbackHandle> = Vec::new();
|
||||
|
||||
pub fn init() {
|
||||
vm::heap_allocator::init();
|
||||
arch::before_all_init();
|
||||
logger::init();
|
||||
vm::heap_allocator::init();
|
||||
boot::init();
|
||||
vm::init();
|
||||
trap::init();
|
||||
arch::after_all_init();
|
||||
|
Reference in New Issue
Block a user