diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-09-01 00:48:27 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-05 22:03:09 +0200 |
commit | 9558b48af006a34d3ab7f0bd13a76b97acd45e47 (patch) | |
tree | d2fbeae7e5f2ef15cc7194fd21d504229259f2de /arch/x86/include/asm | |
parent | cc9abfe4ceb360e9adedc4ed44eae0fcc3fd184c (diff) | |
download | u-boot-imx-9558b48af006a34d3ab7f0bd13a76b97acd45e47.zip u-boot-imx-9558b48af006a34d3ab7f0bd13a76b97acd45e47.tar.gz u-boot-imx-9558b48af006a34d3ab7f0bd13a76b97acd45e47.tar.bz2 |
console: Implement pre-console buffer
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.
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/global_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index f8a16d6..f177a4f 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -40,6 +40,9 @@ typedef struct global_data { unsigned long flags; unsigned long baudrate; unsigned long have_console; /* serial_init() was called */ +#ifdef CONFIG_PRE_CONSOLE_BUFFER + unsigned long precon_buf_idx; /* Pre-Console buffer index */ +#endif unsigned long reloc_off; /* Relocation Offset */ unsigned long load_off; /* Load Offset */ unsigned long env_addr; /* Address of Environment struct */ |