aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/global_data.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-31 09:31:27 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:42:40 -0600
commitb0b403d954081520ba82fef24dee6486ffebe017 (patch)
tree13c28343dae3337daca1ace3bdaeee09918b1b7a /include/asm-generic/global_data.h
parentb6c9a205569964c7adbc8ab9470567c7e2436e0f (diff)
downloadu-boot-midas-b0b403d954081520ba82fef24dee6486ffebe017.tar.gz
u-boot-midas-b0b403d954081520ba82fef24dee6486ffebe017.tar.bz2
u-boot-midas-b0b403d954081520ba82fef24dee6486ffebe017.zip
Reserve the top 16 flag bits for architecture-specific use
Add a convention that the generic global_data only occupy the bottom 16 bits of the flags word, so that there is less chance of a conflict. At present the x86 flags conflict. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/asm-generic/global_data.h')
-rw-r--r--include/asm-generic/global_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 7ef3e259b4..9f5db0f5af 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -104,7 +104,7 @@ typedef struct global_data {
#endif
/*
- * Global Data Flags
+ * Global Data Flags - the top 16 bits are reserved for arch-specific flags
*/
#define GD_FLG_RELOC 0x00001 /* Code was relocated to RAM */
#define GD_FLG_DEVINIT 0x00002 /* Devices have been initialized */