feat: 允许通过multiboot引导(直到acpi初始化报错) (#914)

This commit is contained in:
LoGin
2024-09-06 20:04:36 +08:00
committed by GitHub
parent 886ce28516
commit db7c782a9a
12 changed files with 847 additions and 63 deletions

View File

@ -141,12 +141,13 @@ impl MemoryManagementArch for X86_64MMArch {
fn _edata();
fn _erodata();
fn _end();
fn _default_kernel_load_base();
}
Self::init_xd_rsvd();
let bootstrap_info = X86_64MMBootstrapInfo {
kernel_load_base_paddr: 0,
kernel_load_base_paddr: _default_kernel_load_base as usize,
kernel_code_start: _text as usize,
kernel_code_end: _etext as usize,
kernel_data_end: _edata as usize,