Skip to content

Commit df38891

Browse files
authored
Merge pull request #365 from JarlEvanson/issue-#315
Implemented sorting of uefi memory maps #315
2 parents 63340a3 + ccfe87e commit df38891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

uefi/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ fn main_inner(image: Handle, mut st: SystemTable<Boot>) -> Status {
137137
);
138138

139139
log::trace!("exiting boot services");
140-
let (system_table, memory_map) = st.exit_boot_services();
140+
let (system_table, mut memory_map) = st.exit_boot_services();
141+
142+
memory_map.sort();
141143

142144
let mut frame_allocator =
143145
LegacyFrameAllocator::new(memory_map.entries().copied().map(UefiMemoryDescriptor));

0 commit comments

Comments
 (0)