[SeaBIOS] Re: [PATCH v2 2/2] malloc: use large ZoneHigh when there is enough memory

2022-04-25 Thread Kevin O'Connor
On Mon, Apr 25, 2022 at 09:41:45AM +0200, Gerd Hoffmann wrote: > In case there is enough memory installed use a large ZoneHigh. > > Signed-off-by: Gerd Hoffmann > --- > src/config.h | 3 ++- > src/malloc.c | 4 +++- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git

[SeaBIOS] Re: Floppy setup

2022-04-25 Thread Kevin O'Connor
On Sun, Apr 24, 2022 at 07:29:56PM -0400, Keith Hui wrote: > (Looping in the SeaBIOS mailing list again.) > > See this: https://www.seabios.org/Runtime_config > > It appears CMOS locations are a legacy artifact and files within the > cbfs image (eg. etc/floppy0) is the preferred way of passing

[SeaBIOS] [PATCH v2 0/2] use large ZoneHigh when there is enough memory

2022-04-25 Thread Gerd Hoffmann
Gerd Hoffmann (2): malloc: use variable for ZoneHigh size malloc: use large ZoneHigh when there is enough memory src/config.h | 3 ++- src/malloc.c | 18 +++--- 2 files changed, 13 insertions(+), 8 deletions(-) -- 2.35.1

[SeaBIOS] [PATCH v2 2/2] malloc: use large ZoneHigh when there is enough memory

2022-04-25 Thread Gerd Hoffmann
In case there is enough memory installed use a large ZoneHigh. Signed-off-by: Gerd Hoffmann --- src/config.h | 3 ++- src/malloc.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index 93c8dbc2d530..9abe355b6c47 100644 --- a/src/config.h +++

[SeaBIOS] [PATCH v2 1/2] malloc: use variable for ZoneHigh size

2022-04-25 Thread Gerd Hoffmann
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 ---