mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
common: Allow a smaller console-recording pre-reloc
Before relocation there is generally not as much available memory and not that much console output. At present the console-output buffer is the same side before and after relocation. Add a separate Kconfig option to remove this limitation. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b7c2cc49ff
commit
8ce465e48d
2 changed files with 13 additions and 1 deletions
|
@ -32,6 +32,16 @@ config CONSOLE_RECORD_OUT_SIZE
|
|||
more data will be recorded until some is removed. The buffer is
|
||||
allocated immediately after the malloc() region is ready.
|
||||
|
||||
config CONSOLE_RECORD_OUT_SIZE_F
|
||||
hex "Output buffer size before relocation"
|
||||
depends on CONSOLE_RECORD
|
||||
default 0x400 if CONSOLE_RECORD
|
||||
help
|
||||
Set the size of the console output buffer before relocation. When
|
||||
this fills up, no more data will be recorded until some is removed.
|
||||
The buffer is allocated immediately after the early malloc() region is
|
||||
ready.
|
||||
|
||||
config CONSOLE_RECORD_IN_SIZE
|
||||
hex "Input buffer size"
|
||||
depends on CONSOLE_RECORD
|
||||
|
|
|
@ -735,7 +735,9 @@ int console_record_init(void)
|
|||
int ret;
|
||||
|
||||
ret = membuff_new((struct membuff *)&gd->console_out,
|
||||
CONFIG_CONSOLE_RECORD_OUT_SIZE);
|
||||
gd->flags & GD_FLG_RELOC ?
|
||||
CONFIG_CONSOLE_RECORD_OUT_SIZE :
|
||||
CONFIG_CONSOLE_RECORD_OUT_SIZE_F);
|
||||
if (ret)
|
||||
return ret;
|
||||
ret = membuff_new((struct membuff *)&gd->console_in,
|
||||
|
|
Loading…
Add table
Reference in a new issue