From 0ee23c7dd1a2559aecf46c2665187209115860f4 Mon Sep 17 00:00:00 2001 From: Graham MacDonald Date: Tue, 20 Feb 2024 21:35:48 +0000 Subject: [PATCH] Tidy comment Signed-off-by: Graham MacDonald --- aarch64/src/vm.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aarch64/src/vm.rs b/aarch64/src/vm.rs index 12dc853..411332c 100644 --- a/aarch64/src/vm.rs +++ b/aarch64/src/vm.rs @@ -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()));