[rtems commit] bsp/gen5200: Fix FPU initialization

Joel Sherrill joel at rtems.org
Thu Mar 29 14:14:28 UTC 2012


Module:    rtems
Branch:    master
Commit:    00aff0abb8d097950e7e4729f47660c9f11bee7e
Changeset: http://git.rtems.org/rtems/commit/?id=00aff0abb8d097950e7e4729f47660c9f11bee7e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar  9 15:47:32 2012 +0100

bsp/gen5200: Fix FPU initialization

The change of the MSR[FP] status requires a context-synchronizing
instruction.

---

 c/src/lib/libbsp/powerpc/gen5200/start/start.S |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/gen5200/start/start.S b/c/src/lib/libbsp/powerpc/gen5200/start/start.S
index ae1a4ac..d303fe3 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/start/start.S
+++ b/c/src/lib/libbsp/powerpc/gen5200/start/start.S
@@ -706,6 +706,7 @@ FPU_init:
 
 	SETBITS r30, r29, MSR_FP
 	mtmsr	r30				/* enable FPU and FPU exceptions */
+	sync
 
 	lfd 	f0, 0(r29)
 	fmr 	f1, f0




More information about the vc mailing list