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

Bin Meng bmeng.cn at gmail.com
Sun Aug 18 13:59:13 UTC 2019


On Fri, Aug 16, 2019 at 10:43 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> 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>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list