FPU-related code in SB.
@@ -720,6 +720,8 @@ | ||
720 | 720 | /* Port-specific settings (override port settings defaulted in chcore.h). */ |
721 | 721 | /*===========================================================================*/ |
722 | 722 | |
723 | +#define PORT_USE_SYSCALL TRUE | |
724 | + | |
723 | 725 | #endif /* CHCONF_H */ |
724 | 726 | |
725 | 727 | /** @} */ |
@@ -66,7 +66,7 @@ | ||
66 | 66 | |
67 | 67 | # Enables the use of FPU (no, softfp, hard). |
68 | 68 | ifeq ($(USE_FPU),) |
69 | - USE_FPU = no | |
69 | + USE_FPU = hard | |
70 | 70 | endif |
71 | 71 | |
72 | 72 | # FPU-related options. |
@@ -166,7 +166,7 @@ | ||
166 | 166 | newctxp->pc = (uint32_t)port_syscall; |
167 | 167 | newctxp->xpsr = 0x01000000U; |
168 | 168 | #if CORTEX_USE_FPU == TRUE |
169 | - newctxp->fpscr = (regarm_t)FPU->FPDSCR; | |
169 | + newctxp->fpscr = FPU->FPDSCR; | |
170 | 170 | #endif |
171 | 171 | } |
172 | 172 | else |
@@ -362,7 +362,7 @@ | ||
362 | 362 | /* Setting up a fake XPSR register value.*/ |
363 | 363 | ectxp->xpsr = 0x01000000U; |
364 | 364 | #if CORTEX_USE_FPU == TRUE |
365 | - ectxp->fpscr = (regarm_t)FPU->FPDSCR; | |
365 | + ectxp->fpscr = FPU->FPDSCR; | |
366 | 366 | #endif |
367 | 367 | |
368 | 368 | /* Writing back the modified S-PSP value.*/ |