mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 02:24:03 +02:00
console: Report an error when output buffer is exhausted
If the console output buffer is exhausted, characters are silently dropped from the end. Detect this condition and report an error when reading back the characters. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -571,30 +571,34 @@ enum gd_flags {
|
||||
* @GD_FLG_RECORD: record console
|
||||
*/
|
||||
GD_FLG_RECORD = 0x01000,
|
||||
/**
|
||||
* @GD_FLG_RECORD_OVF: record console overflow
|
||||
*/
|
||||
GD_FLG_RECORD_OVF = 0x02000,
|
||||
/**
|
||||
* @GD_FLG_ENV_DEFAULT: default variable flag
|
||||
*/
|
||||
GD_FLG_ENV_DEFAULT = 0x02000,
|
||||
GD_FLG_ENV_DEFAULT = 0x04000,
|
||||
/**
|
||||
* @GD_FLG_SPL_EARLY_INIT: early SPL initialization is done
|
||||
*/
|
||||
GD_FLG_SPL_EARLY_INIT = 0x04000,
|
||||
GD_FLG_SPL_EARLY_INIT = 0x08000,
|
||||
/**
|
||||
* @GD_FLG_LOG_READY: log system is ready for use
|
||||
*/
|
||||
GD_FLG_LOG_READY = 0x08000,
|
||||
GD_FLG_LOG_READY = 0x10000,
|
||||
/**
|
||||
* @GD_FLG_WDT_READY: watchdog is ready for use
|
||||
*/
|
||||
GD_FLG_WDT_READY = 0x10000,
|
||||
GD_FLG_WDT_READY = 0x20000,
|
||||
/**
|
||||
* @GD_FLG_SKIP_LL_INIT: don't perform low-level initialization
|
||||
*/
|
||||
GD_FLG_SKIP_LL_INIT = 0x20000,
|
||||
GD_FLG_SKIP_LL_INIT = 0x40000,
|
||||
/**
|
||||
* @GD_FLG_SMP_READY: SMP initialization is complete
|
||||
*/
|
||||
GD_FLG_SMP_READY = 0x40000,
|
||||
GD_FLG_SMP_READY = 0x80000,
|
||||
};
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
Reference in New Issue
Block a user