From: Simon Glass Date: Fri, 31 Jul 2015 15:31:27 +0000 (-0600) Subject: Reserve the top 16 flag bits for architecture-specific use X-Git-Tag: KARO-TXSD-2017-03-15~3982^2~49 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0b403d954081520ba82fef24dee6486ffebe017;p=karo-tx-uboot.git 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 Reviewed-by: Bin Meng --- 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 */