[U-Boot] [PATCH v2 3/6] cbfs: Move static variables into a struct
Bin Meng
bmeng.cn at gmail.com
Fri Aug 16 14:43:03 UTC 2019
On Thu, Aug 15, 2019 at 3:18 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> 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>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list