mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
5cde44e12a
commit
1526bcce0f
3 changed files with 17 additions and 1 deletions
|
@ -113,6 +113,12 @@ struct blk_desc {
|
|||
(PAD_SIZE(size, blk_desc->blksz))
|
||||
|
||||
#if CONFIG_IS_ENABLED(BLOCK_CACHE)
|
||||
|
||||
/**
|
||||
* blkcache_init() - initialize the block cache list pointers
|
||||
*/
|
||||
int blkcache_init(void);
|
||||
|
||||
/**
|
||||
* blkcache_read() - attempt to read a set of blocks from cache
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue