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

2019-08-18 Thread Bin Meng
On Fri, Aug 16, 2019 at 10:43 PM Bin Meng wrote: > > On Thu, Aug 15, 2019 at 3:18 PM Bin Meng wrote: > > > > On Thu, Aug 15, 2019 at 9:56 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 i

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

2019-08-16 Thread Bin Meng
On Thu, Aug 15, 2019 at 3:18 PM Bin Meng wrote: > > On Thu, Aug 15, 2019 at 9:56 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 i

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

2019-08-15 Thread Bin Meng
On Thu, Aug 15, 2019 at 9:56 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 BSS is availab

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

2019-08-14 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 --- Changes in v2: - Make cbf