[U-Boot] [PATCH V5] console: Implement pre-console buffer

Wolfgang Denk wd at denx.de
Wed Oct 5 20:50:30 CEST 2011


Dear Graeme Russ,

In message <1314874326-10231-1-git-send-email-graeme.russ at gmail.com> you wrote:
> Allow redirection of console output prior to console initialisation to a
> temporary buffer.
> 
> To enable this functionality, the board (or arch) must define:
>  - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
>  - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
>  - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)
> 
> The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
> Any earlier characters are silently dropped.
> 
> Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
> ---
> Grrrr - Repost of V5 with an SoB. There has to be a better way of
> automating patch updates ;)
> 
> Changes since V4
>  - Fixed typo in README
>  - Made *pre_console* functions in console.c static
>  - Slight tweak to commit message - Some may choose to set the
>    configuration defines at the arch level
> 
> Changes since V3
>  - Fixed  blank subject caused by gap between the Cc: list and Date:
> 
> Changes since V2
>  - Cast buffer size to unsigned long to help compilers produce tighter
>    code
>  - Use inline stub functions to reduce #ifdef clutter
>  - Add documentation to README
> 
> Changes Since V1
>  - Implemented circular buffer
>  - Trivial code styl corrections
> 
> ---
>  README                                    |   14 +++++++++
>  arch/arm/include/asm/global_data.h        |    3 ++
>  arch/avr32/include/asm/global_data.h      |    3 ++
>  arch/blackfin/include/asm/global_data.h   |    3 ++
>  arch/m68k/include/asm/global_data.h       |    3 ++
>  arch/microblaze/include/asm/global_data.h |    3 ++
>  arch/mips/include/asm/global_data.h       |    3 ++
>  arch/nios2/include/asm/global_data.h      |    3 ++
>  arch/powerpc/include/asm/global_data.h    |    3 ++
>  arch/sh/include/asm/global_data.h         |    3 ++
>  arch/sparc/include/asm/global_data.h      |    3 ++
>  arch/x86/include/asm/global_data.h        |    3 ++
>  common/console.c                          |   43 +++++++++++++++++++++++++++-
>  13 files changed, 88 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The greatest threat towards future is indifference.


More information about the U-Boot mailing list