mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
x86: Add back cold- and warm-boot flags
These were removed, but actually are useful. Cold means that we started from a reset/power on. Warm means that we started from another U-Boot. We determine whether u-boot on x86 was warm or cold booted (really if it started at the beginning of the text segment or at the ELF entry point). We plumb the result through to the global data structure. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
112a575e49
commit
91d82a29e7
3 changed files with 18 additions and 1 deletions
|
@ -78,6 +78,12 @@ static inline gd_t *get_fs_gd_ptr(void)
|
|||
|
||||
#include <asm-generic/global_data_flags.h>
|
||||
|
||||
/*
|
||||
* Our private Global Data Flags
|
||||
*/
|
||||
#define GD_FLG_COLD_BOOT 0x00100 /* Cold Boot */
|
||||
#define GD_FLG_WARM_BOOT 0x00200 /* Warm Boot */
|
||||
|
||||
#define DECLARE_GLOBAL_DATA_PTR
|
||||
|
||||
#endif /* __ASM_GBL_DATA_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue