diff options
author | Gabe Black <gabeblack@chromium.org> | 2012-11-03 11:41:28 +0000 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2012-12-06 14:30:42 -0800 |
commit | 91d82a29e7aec12c97dcd4a4be1962f6d794b35c (patch) | |
tree | e70b0d46290d7e1554bc59253cb55e8d091e1ecb /arch/x86/include | |
parent | 112a575e498fe0c6bfbb4dbe3266d83f48d46a99 (diff) | |
download | u-boot-imx-91d82a29e7aec12c97dcd4a4be1962f6d794b35c.zip u-boot-imx-91d82a29e7aec12c97dcd4a4be1962f6d794b35c.tar.gz u-boot-imx-91d82a29e7aec12c97dcd4a4be1962f6d794b35c.tar.bz2 |
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/global_data.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 35110a3..dc6402b 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -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 */ |