We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RUNTIME_SERVICES_*
1 parent c274be7 commit 667e57fCopy full SHA for 667e57f
uefi/src/memory_descriptor.rs
@@ -30,13 +30,16 @@ impl<'a> LegacyMemoryRegion for UefiMemoryDescriptor {
30
MemoryType::LOADER_CODE
31
| MemoryType::LOADER_DATA
32
| MemoryType::BOOT_SERVICES_CODE
33
- | MemoryType::BOOT_SERVICES_DATA
34
- | MemoryType::RUNTIME_SERVICES_CODE
35
- | MemoryType::RUNTIME_SERVICES_DATA => {
+ | MemoryType::BOOT_SERVICES_DATA => {
36
// we don't need this data anymore after the bootloader
37
// passes control to the kernel
38
true
39
}
+ MemoryType::RUNTIME_SERVICES_CODE | MemoryType::RUNTIME_SERVICES_DATA => {
+ // the UEFI standard specifies that these should be presevered
40
+ // by the bootloader and operating system
41
+ false
42
+ }
43
_ => false,
44
45
0 commit comments