diff options
author | Jan Dabros <jsd@semihalf.com> | 2020-07-16 13:45:49 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-07-30 17:13:28 +0000 |
commit | 821b1e2f28b875f353b30bcd6b286d3eeae85c7b (patch) | |
tree | 04bd4c1f57a390c601514f67014bf1ce35bff34a /src/soc | |
parent | 1756e10a3460435a475c1bde06a2587e5da24d84 (diff) |
lib/bootmem.c: Improve bootmem_allocate_buffer algorithm
Since regions in bootmem are sorted by increasing base address, we may
bail out of the search loop as soon as the region_base is bigger than
the max address allowed.
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I44b44bf9618fd0615103cbf74271235d61d49473
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43512
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
0 files changed, 0 insertions, 0 deletions