refactor: move Mapping<F> to types crate with VirtualAddress/PhysicalAddress newtypes, rename MapFlags to Sv39Flags

This commit is contained in:
2026-10-18 02:45:53 +02:00
parent 7df3034fca
commit 5c29c0845d
6 changed files with 57 additions and 57 deletions

View File

@@ -5,6 +5,7 @@ pub mod bounded;
pub mod generation;
pub mod id;
pub mod macros;
pub mod mapping;
pub mod permission;
#[cfg(kani)]
pub mod proofs;

View File

@@ -0,0 +1,8 @@
use crate::address::{PhysicalAddress, VirtualAddress};
pub struct Mapping<F> {
pub va: VirtualAddress,
pub pa: PhysicalAddress,
pub pages: usize,
pub flags: F,
}