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

2019-08-14 Thread Simon Glass
Hi Bin, On Wed, 14 Aug 2019 at 02:40, Bin Meng wrote: > > Hi Simon, > > On Wed, Aug 14, 2019 at 11:09 AM Simon Glass 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

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

2019-08-14 Thread Bin Meng
Hi Simon, On Wed, Aug 14, 2019 at 11:09 AM Simon Glass 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

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

2019-08-13 Thread Simon Glass
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 --- fs/cbfs/cbfs.c | 96