[U-Boot-Users] ppc_4xx: POST_SPR reports an error with DVLIM

Niklaus Giger niklausgiger at gmx.ch
Mon Jan 14 12:24:56 CET 2008


Hi

I added POST (including POST_SPR) to my PPC440EPx based hcu5 board.

After running I did see by executin "log show"
<..>
<4>POST spr The value of DVLIM special register is incorrect: 0x00000000
<4>FAILED

I close inspection revealed that DVLIM is set to the correct value in
_start_440, but afterwards reset to 0 in dflush.

Are there any special reasons, why dflush should manipulate DVLIM?
Or would it be okay to submit a patch like:
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index a730604..b8c33cc 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -1700,8 +1700,6 @@ trap_reloc:
 	rlwinm	r8,r9,0,15,13
 	rlwinm	r8,r8,0,17,15
 	mtmsr	r8
-	addi	r3,r0,0x0000
-	mtspr	dvlim,r3
 	mfspr	r3,ivpr
 	addi	r4,r0,1024
 	mtctr	r4
---

Best regards

-- 
Niklaus Giger
Netstal Maschinen AG
CH-8752 Naefels




More information about the U-Boot mailing list