Skip to content

Commit

Permalink
fix: add return 0
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Aug 1, 2024
1 parent 74a6301 commit 4c22a77
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/kernel/physical_memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,13 @@ void PhysicalMemoryManager::MoveElfDtb() {
}
}

uint32_t PhysicalMemoryInit(uint32_t argc, uint8_t* argv) {
uint32_t PhysicalMemoryInit(uint32_t, uint8_t*) {
// 初始化物理内存管理器
// kPhysicalMemoryManager.GetInstance() =
// PhysicalMemoryManager(kBasicInfo.GetInstance().physical_memory_addr,
// kBasicInfo.GetInstance().physical_memory_size);
kPhysicalMemoryManager.GetInstance() =
PhysicalMemoryManager(kBasicInfo.GetInstance().physical_memory_addr,
kBasicInfo.GetInstance().physical_memory_size);

// Info("Hello PhysicalMemoryInit\n");
log::Info("Hello PhysicalMemoryInit\n");

return 0;
}

0 comments on commit 4c22a77

Please sign in to comment.