WIP: aarch64

This commit is contained in:
4lDO2
2023-07-27 19:05:33 +02:00
parent 8b7fc8a468
commit ec9c24f841
11 changed files with 113 additions and 59 deletions
+4 -5
View File
@@ -32,12 +32,11 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
let space = space.read();
if ! space.grants.is_empty() {
println!("grants:");
for grant in space.grants.iter() {
let region = grant.region();
for (base, grant) in space.grants.iter() {
println!(
" virt 0x{:016x}:0x{:016x} size 0x{:08x} {}",
region.start_address().data(), region.final_address().data(), region.size(),
if grant.is_owned() { "owned" } else { "borrowed" },
" virt 0x{:016x}:0x{:016x} size 0x{:08x} {:?}",
base.start_address().data(), base.next_by(grant.page_count()).start_address().data(), grant.page_count() * PAGE_SIZE, grant.provider,
);
}
}