From 655eebbc49be80e2661c559ddfee394bd9c9cbfa Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 3 Jul 2014 11:30:26 +0000 Subject: Fixed FPU code. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7006 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v7m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/rt/ports') diff --git a/os/rt/ports/ARMCMx/chcore_v7m.c b/os/rt/ports/ARMCMx/chcore_v7m.c index 518d162b9..da9368caa 100644 --- a/os/rt/ports/ARMCMx/chcore_v7m.c +++ b/os/rt/ports/ARMCMx/chcore_v7m.c @@ -64,7 +64,7 @@ void SVC_Handler(void) { #if CORTEX_USE_FPU /* Enforcing unstacking of the FP part of the context.*/ - SCB_FPCCR &= ~FPCCR_LSPACT; + FPU->FPCCR &= ~FPU_FPCCR_LSPACT_Msk; #endif /* The port_extctx structure is pointed by the PSP register.*/ @@ -94,7 +94,7 @@ void PendSV_Handler(void) { #if CORTEX_USE_FPU /* Enforcing unstacking of the FP part of the context.*/ - SCB_FPCCR &= ~FPCCR_LSPACT; + FPU->FPCCR &= ~FPU_FPCCR_LSPACT_Msk; #endif /* The port_extctx structure is pointed by the PSP register.*/ -- cgit v1.2.3