Skip to content

Commit

Permalink
Tidy comment
Browse files Browse the repository at this point in the history
Signed-off-by: Graham MacDonald <[email protected]>
  • Loading branch information
gmacd committed Feb 20, 2024
1 parent c4fca39 commit 0ee23c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aarch64/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,7 @@ pub unsafe fn init(kpage_table: &mut PageTable, dtb_range: PhysRange, available_
write_volatile(&mut kpage_table.entries[511], entry);
}

// TODO We don't actualy unmap the first page... We should to achieve:
// Note that the first page is left unmapped to try and
// catch null pointer dereferences in unsafe code: defense
// in depth!
// TODO leave the first page unmapped to catch null pointer dereferences in unsafe code
let custom_map = {
let text_range =
PhysRange(from_virt_to_physaddr(text_addr())..from_virt_to_physaddr(etext_addr()));
Expand Down

0 comments on commit 0ee23c7

Please sign in to comment.