1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Angelo Durgehello
2020-01-21 10:37:27 +01:00
committed by Tom Rini
parent 5cde44e12a
commit 1526bcce0f
3 changed files with 17 additions and 1 deletions

View File

@@ -864,6 +864,9 @@ static init_fnc_t init_sequence_r[] = {
#endif
#if defined(CONFIG_PRAM)
initr_mem,
#endif
#ifdef CONFIG_BLOCK_CACHE
blkcache_init,
#endif
run_main_loop,
};