]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Reserve the top 16 flag bits for architecture-specific use
authorSimon Glass <sjg@chromium.org>
Fri, 31 Jul 2015 15:31:27 +0000 (09:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:52 +0000 (08:00 +0200)
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>
include/asm-generic/global_data.h

index 7ef3e259b46b501b5dd0053e47a13e9c03684a0c..9f5db0f5afb9f57c39e2bc10965f4bbeb96fa051 100644 (file)
@@ -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   */