Skip to contentSkip to conversation

ppc4xx: Fix dflush() to restore DVLIM register

PATCH New Larry Johnson 2 participants 2 messages Jan 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Fix dflush() to restore DVLIM register

---
 cpu/ppc4xx/start.S |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
cpu/ppc4xx/start.S +2 -0
index a730604..77c2aa4 100644
@@ -1700,6 +1700,7 @@ trap_reloc:
 	rlwinm	r8,r9,0,15,13
 	rlwinm	r8,r8,0,17,15
 	mtmsr	r8
+	mfspr	r8,dvlim
 	addi	r3,r0,0x0000
 	mtspr	dvlim,r3
 	mfspr	r3,ivpr
@@ -1714,6 +1715,7 @@ trap_reloc:
 ..ag:	dcbf	r0,r3
 	addi	r3,r3,-32
 	bdnz	..ag
+	mtspr	dvlim,r8
 	sync
 	mtmsr	r9
 	blr
Applied
#1 lore raw

PATCH 1/1 ppc4xx: Fix dflush() to restore DVLIM register

Quoted 1 line · Larry Johnson

Applied. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================