Skip to content

Commit 6bc9d74

Browse files
nicholasbishopphip1611
authored andcommitted
uefi-raw: Add PAGE_SIZE constant
1 parent 70122b5 commit 6bc9d74

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

uefi-raw/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# uefi-raw - [Unreleased]
22

3+
## Added
4+
5+
- Added `PAGE_SIZE` constant.
6+
37

48
# uefi-raw - 0.7.0 (2024-08-20)
59

uefi-raw/src/table/boot.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,3 +478,9 @@ pub enum Tpl: usize => {
478478
/// Even processor interrupts are disable at this level.
479479
HIGH_LEVEL = 31,
480480
}}
481+
482+
/// Size in bytes of a UEFI page.
483+
///
484+
/// Note that this is not necessarily the processor's page size. The UEFI page
485+
/// size is always 4 KiB.
486+
pub const PAGE_SIZE: usize = 4096;

0 commit comments

Comments
 (0)