diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-28 19:42:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-28 19:42:47 +0000 |
commit | 96422503f6b063e38a4764f347fc4f73cc6e1011 (patch) | |
tree | 05545ce11489c46c7c189bb5674baf30d945f30b /os/ports | |
parent | 9a17cc5f9728fac11325789e1bcfd694f57365b1 (diff) | |
download | ChibiOS-96422503f6b063e38a4764f347fc4f73cc6e1011.tar.gz ChibiOS-96422503f6b063e38a4764f347fc4f73cc6e1011.tar.bz2 ChibiOS-96422503f6b063e38a4764f347fc4f73cc6e1011.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3680 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/RVCT/ARMCMx/chcore_v7m.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/ports/RVCT/ARMCMx/chcore_v7m.c b/os/ports/RVCT/ARMCMx/chcore_v7m.c index 336552107..7ed55f6c6 100644 --- a/os/ports/RVCT/ARMCMx/chcore_v7m.c +++ b/os/ports/RVCT/ARMCMx/chcore_v7m.c @@ -169,8 +169,8 @@ void _port_irq_epilogue(void) { if (chSchIsPreemptionRequired()) {
#if CORTEX_USE_FPU
/* Triggering a lazy FPU state save.*/
- register volatile uint32_t fpscr __asm("fpscr");
- (void)fpscr;
+ register uint32_t fpscr __asm("fpscr");
+ ctxp->r0 = (regarm_t)fpscr;
#endif
/* Preemption is required we need to enforce a context switch.*/
ctxp->pc = (regarm_t)_port_switch_from_isr;
|