Skip to content

Commit f10465a

Browse files
Merge pull request #1526 from hannahfluch/main
Add warning to custom memory types
2 parents e4921c1 + a3269af commit f10465a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uefi-raw/src/table/boot.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ impl MemoryType {
439439

440440
/// Construct a custom `MemoryType`. Values in the range `0x8000_0000..=0xffff_ffff` are free for use if you are
441441
/// an OS loader.
442+
///
443+
/// **Warning**: Some EFI firmware versions (e.g., OVMF r11337) may crash or [behave incorrectly](https://wiki.osdev.org/UEFI#My_bootloader_hangs_if_I_use_user_defined_EFI_MEMORY_TYPE_values) when using a custom `MemoryType`.
442444
#[must_use]
443445
pub const fn custom(value: u32) -> Self {
444446
assert!(value >= 0x80000000);

0 commit comments

Comments
 (0)