Refactor boot and add placeholder kcmdline struct

This commit is contained in:
Zhang Junyang
2023-07-25 12:22:03 +08:00
committed by Tate, Hongliang Tian
parent eb8eb440b3
commit 69cbfc72f5
13 changed files with 145 additions and 113 deletions

View File

@ -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();