]> git.ipfire.org Git - people/ms/u-boot.git/commit
efi_loader: Keep memory mapping sorted when splitting an entry
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sat, 1 Oct 2016 21:32:28 +0000 (23:32 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 18 Oct 2016 07:08:07 +0000 (09:08 +0200)
commitb6a951727504d4159467ac98434849f81aaf9ffa
tree76b16d38c9396eb1b50d3709154b4d7b7331341e
parentb61d857b2ff3b0b099ef187d7ceebe26ea788578
efi_loader: Keep memory mapping sorted when splitting an entry

The code assumes sorted mappings in descending address order. When
splitting a mapping, insert the new part next to the current mapping.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c