diff --git a/src/arch/aarch64/paging/mod.rs b/src/arch/aarch64/paging/mod.rs index 43c8d13..e0e5384 100644 --- a/src/arch/aarch64/paging/mod.rs +++ b/src/arch/aarch64/paging/mod.rs @@ -12,6 +12,8 @@ use self::entry::{EntryFlags, TableDescriptorFlags}; use self::mapper::{Mapper, MapperFlushAll, MapperType}; use self::temporary_page::TemporaryPage; +pub use rmm::PhysicalAddress; + pub mod entry; pub mod mapper; pub mod table; @@ -374,20 +376,6 @@ impl InactivePageTable { } } -/// A physical address. -#[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)] -pub struct PhysicalAddress(usize); - -impl PhysicalAddress { - pub fn new(address: usize) -> Self { - PhysicalAddress(address) - } - - pub fn data(&self) -> usize { - self.0 - } -} - /// A virtual address. #[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)] pub struct VirtualAddress(usize);