Skip to content
Snippets Groups Projects
Commit efb5b474 authored by Wren Turkal's avatar Wren Turkal
Browse files

Implement Debug for a couple structs.


I am finding it useful to be able to pretty print Mappers and
ActivePageTable structs.

Signed-off-by: default avatarWren Turkal <wt@penguintechs.org>
parent 615e5165
No related branches found
No related tags found
1 merge request!142Implement Debug for a couple structs.
......@@ -76,6 +76,7 @@ impl Drop for MapperFlushAll {
}
}
#[derive(Debug)]
pub struct Mapper {
p4: Unique<Table<Level4>>,
}
......
......@@ -374,6 +374,7 @@ pub unsafe fn init_ap(
init_tcb(cpu_id)
}
#[derive(Debug)]
pub struct ActivePageTable {
mapper: Mapper,
locked: bool,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment