diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-13 08:34:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-13 08:34:56 +0000 |
commit | 9349fd22d34dfbaa49dda2901003dcfc83378bfb (patch) | |
tree | 1ee9602b3ce29e1a06a188276a069cc51218f500 /os | |
parent | 1e928debb351c32e8f17998552ab4ce453f1a78e (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/rt/ports/ARMCMx/chcore_v7m.c | 2 |
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);
|