Skip to content
Snippets Groups Projects
Commit 5e3dca57 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Wolfgang Denk
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
parent accf7355
No related branches found
No related tags found
No related merge requests found
...@@ -1083,7 +1083,11 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis) ...@@ -1083,7 +1083,11 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis)
#ifdef CONFIG_4xx_DCACHE #ifdef CONFIG_4xx_DCACHE
flush_dcache_range(bd_cached, bd_cached + MAL_ALLOC_SIZE); flush_dcache_range(bd_cached, bd_cached + MAL_ALLOC_SIZE);
if (!last_used_ea) 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; bd_uncached = bis->bi_memsize;
#endif
else else
bd_uncached = last_used_ea + MAL_ALLOC_SIZE; bd_uncached = last_used_ea + MAL_ALLOC_SIZE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment