]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: Merge memory map entries
authorAlexander Graf <agraf@suse.de>
Sun, 16 Sep 2018 15:05:29 +0000 (17:05 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commit597239b737e0eabb2a7a535f369cfbd89df8d8f4
treec23d4d7ec60a9bae0e71491d291d2b94c5a4eac3
parent4a1f56d463b8718b2c5e39e0723f3a424da59469
efi_loader: Merge memory map entries

We currently do not combine memory entries that are adjacent and have
the same attributes. The problem with that is that our memory map can
easily grow multiple hundreds of entries in a simple UEFI Shell
environment.

So let's make sure we always combine all entries to make the memory
map as small as possible. That way every other piece of code that
loops through it should also gain some nice speed ups.

Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c