]> xenbits.xensource.com Git - seabios.git/commit
malloc: use variable for ZoneHigh size
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 25 Apr 2022 07:20:02 +0000 (09:20 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 27 Apr 2022 07:15:25 +0000 (09:15 +0200)
commit3b91e8e9fe93d5ff7edf17f984c401f9e6ba55fe
tree9c5ccd2145e39f2b437290874a17a4450726db15
parent01774004c7f7fdc9c1e8f1715f70d3b913f8d491
malloc: use variable for ZoneHigh size

Use the variable highram_size instead of the BUILD_MAX_HIGHTABLE #define
for the ZoneHigh size. Initialize the new variable with the old #define,
so behavior does not change.

This allows to easily adjust the ZoneHigh size at runtime in a followup
patch.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/malloc.c