diff --git a/uefi-raw/CHANGELOG.md b/uefi-raw/CHANGELOG.md index 489bc8ca8..dcd9ff3ef 100644 --- a/uefi-raw/CHANGELOG.md +++ b/uefi-raw/CHANGELOG.md @@ -1,5 +1,9 @@ # uefi-raw - [Unreleased] +## Added + +- Added `PAGE_SIZE` constant. + # uefi-raw - 0.7.0 (2024-08-20) diff --git a/uefi-raw/src/table/boot.rs b/uefi-raw/src/table/boot.rs index d197d424a..8559a4c28 100644 --- a/uefi-raw/src/table/boot.rs +++ b/uefi-raw/src/table/boot.rs @@ -478,3 +478,9 @@ pub enum Tpl: usize => { /// Even processor interrupts are disable at this level. HIGH_LEVEL = 31, }} + +/// Size in bytes of a UEFI page. +/// +/// Note that this is not necessarily the processor's page size. The UEFI page +/// size is always 4 KiB. +pub const PAGE_SIZE: usize = 4096;