[rtems commit] bsp/gen5200: Fix FPU initialization
Sebastian Huber
sebh at rtems.org
Fri Mar 9 14:55:45 UTC 2012
Module: rtems
Branch: master
Commit: c5a6e617a518f3af790fda865e61bb83e69e15c4
Changeset: http://git.rtems.org/rtems/commit/?id=c5a6e617a518f3af790fda865e61bb83e69e15c4
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