Skip to content

Commit 12f3c0e

Browse files
committed
feat(x86_64/mm): log page tables
1 parent 772e997 commit 12f3c0e

File tree

4 files changed

+660
-2
lines changed

4 files changed

+660
-2
lines changed

Cargo.lock

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,6 @@ members = [
199199
exclude = [
200200
"hermit-builtins",
201201
]
202+
203+
[patch.crates-io]
204+
x86_64 = { git = "https://github.com/rust-osdev/x86_64.git" }

src/arch/x86_64/mm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ pub fn create_new_root_page_table() -> usize {
5959
pub fn init() {
6060
paging::init();
6161
crate::mm::physicalmem::init();
62+
unsafe {
63+
paging::log_page_tables();
64+
}
6265
crate::mm::virtualmem::init();
6366

6467
#[cfg(feature = "common-os")]

0 commit comments

Comments
 (0)