We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0a797 commit b82341aCopy full SHA for b82341a
kernel/src/main.rs
@@ -58,14 +58,25 @@ fn kmain() {
58
println!("Kernel running on unknown CPU.");
59
}
60
61
- unsafe { memory::vmm::debug(memory::kernel_pml4().level_4_table()) };
62
- memory::pmm::debug();
63
pci::init();
64
- pci::debug();
+
+ debug();
65
66
kernel::shutdown_qemu();
67
68
+#[allow(dead_code)]
69
+fn debug() {
70
+ // Virtual memory.
71
+ unsafe { memory::vmm::debug(memory::kernel_pml4().level_4_table()) };
72
73
+ // Physical memory.
74
+ memory::pmm::debug();
75
76
+ // Unclaimed PCI devices.
77
+ pci::debug();
78
+}
79
80
// Testing framework.
81
82
/// This function is called on panic
0 commit comments