Skip to content

Commit ccfe87e

Browse files
author
Jarl Evanson
committed
Implemented sorting of uefi memory maps
1 parent 63340a3 commit ccfe87e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)