]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix crash on sequoia in ppc_4xx_eth_init
authorAnatolij Gustschin <agust@denx.de>
Thu, 17 Apr 2008 16:18:00 +0000 (18:18 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 18 Apr 2008 07:48:27 +0000 (00:48 -0700)
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>
cpu/ppc4xx/4xx_enet.c

index 007cb4f1ecf64ed6b46a23b3716c1f9208db2751..c40e0ca48098bfbf4d22af3214c67efba47b6fcd 100644 (file)
@@ -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;