]> git.baikalelectronics.ru Git - uboot.git/commit
cbfs: Move static variables into a struct
authorSimon Glass <sjg@chromium.org>
Thu, 15 Aug 2019 01:56:12 +0000 (19:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 18 Aug 2019 13:54:10 +0000 (21:54 +0800)
commit75d819afc3f4785527a328ed7353ebc2c0937e6b
tree81dffa2a2f99178b1506c4f8ef750d688d3c0cb6
parentaafd92cee92381cf106421180039486666cb4427
cbfs: Move static variables into a struct

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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
fs/cbfs/cbfs.c