Debug use of memory map and env data

This commit is contained in:
Jeremy Soller
2021-05-07 08:54:36 -06:00
parent 38f7884e21
commit 77f6887fbc

View File

@@ -90,10 +90,13 @@ pub unsafe extern fn kstart(args_ptr: *const KernelArgs) -> ! {
info!("Env: {:X}:{:X}", env_base, env_base + env_size);
info!("DTB: {:X}:{:X}", dtb_base, dtb_base + dtb_size);
//TODO: Until fixed, the DTB is at DEVMAP_OFFSET + dtb_base
// This is not required after paging is enabled because paging fixes this
println!("FILL MEMORY MAP START");
device_tree::fill_memory_map(crate::KERNEL_DEVMAP_OFFSET + dtb_base, dtb_size);
println!("FILL MEMORY MAP COMPLETE");
println!("FILL ENV DATA START");
let env_size = device_tree::fill_env_data(crate::KERNEL_DEVMAP_OFFSET + dtb_base, dtb_size, env_base);
println!("FILL ENV DATA COMPLETE");
// Initialize RMM
println!("RMM INIT START");