aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:18:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:18:23 +0000
commit1e928debb351c32e8f17998552ab4ce453f1a78e (patch)
treedff1d168d8ec958f0329d8f461ce7032a0fffa51 /os/rt
parent7e5f127c41b8fb167e6dfb834a4a39bb8cc35bbf (diff)
downloadChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.tar.gz
ChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.tar.bz2
ChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.zip
Fixed bug #533.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7264 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/ports/ARMCMx/chcore_v7m.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/rt/ports/ARMCMx/chcore_v7m.c b/os/rt/ports/ARMCMx/chcore_v7m.c
index 288f58b5a..3d7f0fa97 100644
--- a/os/rt/ports/ARMCMx/chcore_v7m.c
+++ b/os/rt/ports/ARMCMx/chcore_v7m.c
@@ -136,6 +136,7 @@ void _port_irq_epilogue(void) {
/* Setting up a fake XPSR register value.*/
ctxp->xpsr = (regarm_t)0x01000000;
+ ctxp->fpscr = (regarm_t)FPU->FPDSCR;
/* Writing back the modified PSP value.*/
__set_PSP((uint32_t)ctxp);