[U-Boot] [PATCH v2 10/47] Reserve the top 16 flag bits for architecture-specific use

Bin Meng bmeng.cn at gmail.com
Sun Aug 2 15:09:58 CEST 2015


On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2:
> - Add new patch to reserve the top 16 flag bits for architecture-specific use
>
>  include/asm-generic/global_data.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
> index cb2ec08..2155265 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   */
> --

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list