• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision13000 (tree)
Zeit2019-09-19 15:12:53
Autorgdisirio

Log Message

FPU-related code in SB.

Ändern Zusammenfassung

Diff

--- trunk/demos/STM32/RT-STM32L476-DISCOVERY-SB_HOST/cfg/chconf.h (revision 12999)
+++ trunk/demos/STM32/RT-STM32L476-DISCOVERY-SB_HOST/cfg/chconf.h (revision 13000)
@@ -720,6 +720,8 @@
720720 /* Port-specific settings (override port settings defaulted in chcore.h). */
721721 /*===========================================================================*/
722722
723+#define PORT_USE_SYSCALL TRUE
724+
723725 #endif /* CHCONF_H */
724726
725727 /** @} */
--- trunk/demos/STM32/RT-STM32L476-DISCOVERY-SB_HOST/Makefile (revision 12999)
+++ trunk/demos/STM32/RT-STM32L476-DISCOVERY-SB_HOST/Makefile (revision 13000)
@@ -66,7 +66,7 @@
6666
6767 # Enables the use of FPU (no, softfp, hard).
6868 ifeq ($(USE_FPU),)
69- USE_FPU = no
69+ USE_FPU = hard
7070 endif
7171
7272 # FPU-related options.
--- trunk/os/common/ports/ARMCMx/chcore_v7m.c (revision 12999)
+++ trunk/os/common/ports/ARMCMx/chcore_v7m.c (revision 13000)
@@ -166,7 +166,7 @@
166166 newctxp->pc = (uint32_t)port_syscall;
167167 newctxp->xpsr = 0x01000000U;
168168 #if CORTEX_USE_FPU == TRUE
169- newctxp->fpscr = (regarm_t)FPU->FPDSCR;
169+ newctxp->fpscr = FPU->FPDSCR;
170170 #endif
171171 }
172172 else
@@ -362,7 +362,7 @@
362362 /* Setting up a fake XPSR register value.*/
363363 ectxp->xpsr = 0x01000000U;
364364 #if CORTEX_USE_FPU == TRUE
365- ectxp->fpscr = (regarm_t)FPU->FPDSCR;
365+ ectxp->fpscr = FPU->FPDSCR;
366366 #endif
367367
368368 /* Writing back the modified S-PSP value.*/
Show on old repository browser