On Sat, Feb 10, 2024 at 08:39:15PM +0000, Riku Viitanen via SeaBIOS wrote:
romfile_loadfile_g: Based on romfile_loadfile but more flexible. User has to supply pointer to a malloc function and the number of trailing padding bytes. Thus, any memory region may be used.
I'd suggest to add a romfile_loadfile_low(), or add a 'struct zone_s' parameter instead of passing in a function pointer.
Also: What the trailing bytes are used for? Patch 2/2 doesn't use that.
take care, Gerd