Skip to content

Commit 6984237

Browse files
haduongquangdkalowsk
authored andcommitted
arch: arm: core: cortex_a_r: enable the VFP unit on boot for FPU_SHARING
The FPU is already disabled by the z_arm_svc function when the first thread starts. Therefore, disabling the FPU at boot is unnecessary for lazy FPU; instead, it must be enabled to handle floating-point instructions before the lazy FPU works. Signed-off-by: Ha Duong Quang <[email protected]>
1 parent 8bd4f24 commit 6984237

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm/core/cortex_a_r/prep_c.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static inline void z_arm_floating_point_init(void)
6262
__set_CPACR(reg_val);
6363
barrier_isync_fence_full();
6464

65-
#if !defined(CONFIG_FPU_SHARING)
6665
/*
6766
* FPEXC: Floating-Point Exception Control register
6867
* comp. ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition,
@@ -84,7 +83,6 @@ static inline void z_arm_floating_point_init(void)
8483
*/
8584
__set_FPEXC(FPEXC_EN);
8685
#endif
87-
#endif
8886
}
8987

9088
#endif /* CONFIG_CPU_HAS_FPU */

0 commit comments

Comments
 (0)