From ca8bc76fd5319842954508484542f4beb6b591d0 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Wed, 5 Jun 2024 23:24:01 +0200 Subject: interrupt: set up dummy pagefault handler Signed-off-by: Tianhao Wang --- src/arch/x86_64/paging/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/x86_64/paging/mod.rs') diff --git a/src/arch/x86_64/paging/mod.rs b/src/arch/x86_64/paging/mod.rs index ab93938..257b7b3 100644 --- a/src/arch/x86_64/paging/mod.rs +++ b/src/arch/x86_64/paging/mod.rs @@ -1,6 +1,7 @@ // code derived from the x86_64 crate // https://docs.rs/x86_64/latest/src/x86_64/addr.rs.html // see ATTRIBUTIONS +pub mod fault; use crate::defs::*; use bitflags::bitflags; #[repr(align(4096))] @@ -98,6 +99,11 @@ impl Pagetable { pub fn is_empty(&self) -> bool { self.iter().all(|entry| entry.is_unused()) } + + /// walk the page table, create missing tables, return mapped physical frame + pub fn map_page(&self, _va: VAddr) { + todo!() + } } impl VAddr { -- cgit v1.2.3-70-g09d2