Skip to content

Commit

Permalink
uefi-raw: Add PAGE_SIZE constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop authored and phip1611 committed Aug 30, 2024
1 parent 70122b5 commit 6bc9d74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uefi-raw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# uefi-raw - [Unreleased]

## Added

- Added `PAGE_SIZE` constant.


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

Expand Down
6 changes: 6 additions & 0 deletions uefi-raw/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 6bc9d74

Please sign in to comment.