aboutsummaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorAngelo Durgehello2020-01-21 10:37:27 +0100
committerTom Rini2020-01-25 12:04:36 -0500
commit1526bcce0f7285087621e16e6720636d01839da8 (patch)
tree168d3316c1f9fec098444449d6d9b19304288e0d /common/board_r.c
parent5cde44e12adc180575d5ee35ef251e0470a10598 (diff)
common: add blkcache init
On m68k, block_cache list is relocated, but next and prev list pointers are not adjusted to the relocated struct list_head address, so the first iteration over the block_cache list hangs. This patch initializes the block_cache list after relocation. Signed-off-by: Angelo Durgehello <angelo.dureghello@timesys.com> Reviewed-by: Eric Nelson <eric@nelint.com>
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 8a0c1114e77..4f56c19fcc9 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -865,6 +865,9 @@ static init_fnc_t init_sequence_r[] = {
#if defined(CONFIG_PRAM)
initr_mem,
#endif
+#ifdef CONFIG_BLOCK_CACHE
+ blkcache_init,
+#endif
run_main_loop,
};