Skip to content

Commit 98da390

Browse files
nicholasbishopphip1611
authored andcommitted
uefi: Reexport uefi-raw PAGE_SIZE constant from boot modules
1 parent 6bc9d74 commit 98da390

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

uefi/src/boot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//!
2020
//! [`proto`]: crate::proto
2121
22-
pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl};
22+
pub use uefi_raw::table::boot::{EventType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl, PAGE_SIZE};
2323

2424
use crate::data_types::PhysicalAddress;
2525
use crate::mem::memory_map::{MemoryMapBackingMemory, MemoryMapKey, MemoryMapMeta, MemoryMapOwned};

uefi/src/table/boot.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub use crate::boot::{
77
ProtocolSearchKey, SearchType, TimerTrigger,
88
};
99
pub use uefi_raw::table::boot::{
10-
EventType, InterfaceType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl,
10+
EventType, InterfaceType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl, PAGE_SIZE,
1111
};
1212

1313
use super::Revision;
@@ -29,12 +29,6 @@ use core::ops::{Deref, DerefMut};
2929
use core::ptr::NonNull;
3030
use core::{ptr, slice};
3131

32-
/// Size in bytes of a UEFI page.
33-
///
34-
/// Note that this is not necessarily the processor's page size. The UEFI page
35-
/// size is always 4 KiB.
36-
pub const PAGE_SIZE: usize = 4096;
37-
3832
/// Contains pointers to all of the boot services.
3933
///
4034
/// # Accessing `BootServices`

0 commit comments

Comments
 (0)