Skip to content

Commit

Permalink
feat: print mem info after load kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Aug 30, 2024
1 parent c61cc09 commit a3652c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boot/boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) {

// 初始化 Memory
auto memory = Memory();
memory.PrintInfo();
// 加载内核
auto elf = Elf(KERNEL_NAME);
auto [kernel_addr, elf_info] = elf.Load();
Expand All @@ -77,6 +76,9 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) {
return EFI_LOAD_ERROR;
}

// 输出内存映射 Memory
memory.PrintInfo();

debug << L"Set Kernel Entry Point to: [" << OutStream::hex_X << kernel_addr
<< L"]." << OutStream::endl;
debug << L"Elf addr: [" << OutStream::hex_X << elf_info.first << L"]."
Expand Down

0 comments on commit a3652c1

Please sign in to comment.