Changes in kernel/arch/arm32/src/fpu_context.c [5c4356b:193d280c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/fpu_context.c
r5c4356b r193d280c 101 101 FPSCR_EN_ALL = FPSCR_DENORMAL_EN_FLAG | FPSCR_INEXACT_EN_FLAG | FPSCR_UNDERFLOW_EN_FLAG | FPSCR_OVERFLOW_EN_FLAG | FPSCR_ZERO_DIV_EN_FLAG | FPSCR_INVALID_OP_EN_FLAG, 102 102 }; 103 103 104 extern uint32_t fpscr_read(void); 104 105 extern void fpscr_write(uint32_t); … … 114 115 static void (*restore_context)(fpu_context_t *ctx); 115 116 116 static int fpu_have_coprocessor_access() 117 { 118 /* The register containing the information (CPACR) is not available on armv6- 117 static int fpu_have_coprocessor_access(void) 118 { 119 /* 120 * The register containing the information (CPACR) is not available on armv6- 119 121 * rely on user decision to use CONFIG_FPU. 120 122 */ … … 143 145 * @note do we need to call secure monitor here? 144 146 */ 145 static void fpu_enable_coprocessor_access() 146 { 147 /* The register containing the information (CPACR) is not available on armv6- 147 static void fpu_enable_coprocessor_access(void) 148 { 149 /* 150 * The register containing the information (CPACR) is not available on armv6- 148 151 * rely on user decision to use CONFIG_FPU. 149 152 */ … … 189 192 return; 190 193 } 191 switch (FPSID_SUBACHITECTURE(fpsid)) 192 { 194 switch (FPSID_SUBACHITECTURE(fpsid)) { 193 195 case FPU_VFPv1: 194 196 printf("Detected VFPv1\n");
Note:
See TracChangeset
for help on using the changeset viewer.