]> xenbits.xensource.com Git - seabios.git/commit
Fix high memory zone initialization in CSM mode
authorJosé Martínez <xose@google.com>
Tue, 13 Jun 2023 15:01:34 +0000 (11:01 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 13 Jun 2023 15:01:34 +0000 (11:01 -0400)
commit4db444b9a78abf9f6dc981f0e79db749765dc6e8
tree12345770c63bb1b86fe295a315fe3f04e5a86a5a
parentbe7e899350caa7b74d8271a34264c3b4aef25ab0
Fix high memory zone initialization in CSM mode

malloc_high() cannot allocate any memory in CSM mode due to an empty
ZoneHigh. SeaBIOS cannot find any disk to boot from because device
initialization fails.

The bug was introduced in 1.16.1 (commit dc88f9b) when the meaning of
BUILD_MAX_HIGHTABLE changed but CSM code was not updated. This patch
reverts to the previous behavior by using BUILD_MIN_HIGHTABLE in CSM
methods.

Signed-off-by: José Martínez <xose@google.com>
src/fw/csm.c
src/malloc.c