Implement Debug for a couple structs.

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

Signed-off-by: Wren Turkal <wt@penguintechs.org>
This commit is contained in:
Wren Turkal
2020-08-02 22:13:24 -07:00
parent 615e516585
commit efb5b47463
2 changed files with 2 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ impl Drop for MapperFlushAll {
}
}
#[derive(Debug)]
pub struct Mapper {
p4: Unique<Table<Level4>>,
}

View File

@@ -374,6 +374,7 @@ pub unsafe fn init_ap(
init_tcb(cpu_id)
}
#[derive(Debug)]
pub struct ActivePageTable {
mapper: Mapper,
locked: bool,