vm-allocator: Add page size related functions

To avoid code duplication extract page related functions to their
own module and add utility functions for manipulating addresses
related to page sizes

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu
2023-06-02 03:02:52 +00:00
committed by Michael Zhao
parent dec8d619d4
commit 5a9dd7489c
3 changed files with 43 additions and 10 deletions
+2
View File
@@ -12,6 +12,8 @@
mod address;
mod gsi;
/// page size related utility funtions
pub mod page_size;
mod system;
pub use crate::address::AddressAllocator;