aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:34:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:34:56 +0000
commit9349fd22d34dfbaa49dda2901003dcfc83378bfb (patch)
tree1ee9602b3ce29e1a06a188276a069cc51218f500 /os/rt
parent1e928debb351c32e8f17998552ab4ce453f1a78e (diff)
downloadChibiOS-9349fd22d34dfbaa49dda2901003dcfc83378bfb.tar.gz
ChibiOS-9349fd22d34dfbaa49dda2901003dcfc83378bfb.tar.bz2
ChibiOS-9349fd22d34dfbaa49dda2901003dcfc83378bfb.zip
More on bug #513.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7266 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/ports/ARMCMx/chcore_v7m.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/rt/ports/ARMCMx/chcore_v7m.c b/os/rt/ports/ARMCMx/chcore_v7m.c
index 3d7f0fa97..8939a042a 100644
--- a/os/rt/ports/ARMCMx/chcore_v7m.c
+++ b/os/rt/ports/ARMCMx/chcore_v7m.c
@@ -136,7 +136,9 @@ void _port_irq_epilogue(void) {
/* Setting up a fake XPSR register value.*/
ctxp->xpsr = (regarm_t)0x01000000;
+#if CORTEX_USE_FPU
ctxp->fpscr = (regarm_t)FPU->FPDSCR;
+#endif
/* Writing back the modified PSP value.*/
__set_PSP((uint32_t)ctxp);