[SeaBIOS] Re: [PATCH 1/2] romfile: implement a generic loader

2024-02-14 Thread Riku Viitanen via SeaBIOS
> I'd suggest to add a romfile_loadfile_low() I can definitely do that. > or add a 'struct zone_s' > parameter instead of passing in a function pointer. Sounds sensible. I see there's a malloc that takes zone as argument. > Also: What the trailing bytes are used for? Only for re-implementing t

[SeaBIOS] Re: [PATCH 1/2] romfile: implement a generic loader

2024-02-14 Thread Gerd Hoffmann
On Sat, Feb 10, 2024 at 08:39:15PM +, 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 ro