[U-Boot] [PATCH v2 3/6] cbfs: Move static variables into a struct

Bin Meng bmeng.cn at gmail.com
Thu Aug 15 07:18:46 UTC 2019


On Thu, Aug 15, 2019 at 9:56 AM Simon Glass <sjg at chromium.org> wrote:
>
> At present there are a number of static variables in BSS. This cannot work
> with SPL, at least until BSS is available in board_init_r().
>
> Move the variables into a struct, so it is possible to malloc() it and use
> it before BSS is available.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Make cbfs_init() static
> - Move whitespace changes to next patch
>

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


More information about the U-Boot mailing list