From 9349fd22d34dfbaa49dda2901003dcfc83378bfb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 13 Sep 2014 08:34:56 +0000 Subject: More on bug #513. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7266 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v7m.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os/rt') 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); -- cgit v1.2.3