mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
Fix crash on sequoia in ppc_4xx_eth_init
Currently U-Boot crashes in ppc_4xx_eth_init on sequoia with cache enabled (TLB Parity exeption). This patch fixes the problem. Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
accf735576
commit
5e3dca577b
1 changed files with 4 additions and 0 deletions
|
@ -1083,7 +1083,11 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis)
|
|||
#ifdef CONFIG_4xx_DCACHE
|
||||
flush_dcache_range(bd_cached, bd_cached + MAL_ALLOC_SIZE);
|
||||
if (!last_used_ea)
|
||||
#if defined(CFG_MEM_TOP_HIDE)
|
||||
bd_uncached = bis->bi_memsize + CFG_MEM_TOP_HIDE;
|
||||
#else
|
||||
bd_uncached = bis->bi_memsize;
|
||||
#endif
|
||||
else
|
||||
bd_uncached = last_used_ea + MAL_ALLOC_SIZE;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue