summaryrefslogtreecommitdiff
path: root/util/release
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-03-11 19:06:24 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-03-17 08:18:40 +0000
commit9c6274cd8fb1c9ee0eb674ce5945a05f818cb32e (patch)
treea117e3b70d4694c6f7149160b3aa944ea2392e28 /util/release
parent1429092d02e8157c8e6c26849e0c8aa096da9c0c (diff)
memrange: Add support for stealing required memory from given ranges
This change adds memranges_steal() which allows the user to steal memory from the list of available ranges by providing a set of constraints (limit, size, alignment, tag). It tries to find the first big enough range that can satisfy the constraints, creates a hole as per the request and returns base of the stolen memory. BUG=b:149186922 Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Ibe9cfae18fc6101ab2e7e27233e45324c8117708 Reviewed-on: https://review.coreboot.org/c/coreboot/+/39484 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/release')
0 files changed, 0 insertions, 0 deletions