This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit b3a747e78b6bdc71fdbb23e641e5fdc6bc070a8f
Author: Yanfeng Liu <[email protected]>
AuthorDate: Mon Feb 17 10:32:06 2025 +0800

    arch/armv8-r: do fpuconfig at chip side
    
    This moves calling of arm_fpuconfig.c from armv8-r to chip side so
    that to be in line with other arm families. It avoids doing it if
    an armv8-r chip doesn't have FPU enabled.
    
    Signed-off-by: Yanfeng Liu <[email protected]>
---
 arch/arm/src/fvp-v8r-aarch32/fvp_boot.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c 
b/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c
index 1d1fd4bfcb2..665d77c50c7 100644
--- a/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c
+++ b/arch/arm/src/fvp-v8r-aarch32/fvp_boot.c
@@ -84,6 +84,10 @@ void arm_boot(void)
 {
   /* MAP IO and DRAM, enable MPU. */
 
+#ifdef CONFIG_ARCH_FPU
+  arm_fpuconfig();
+#endif
+
   /* Perform board-specific device initialization. This would include
    * configuration of board specific resources such as GPIOs, LEDs, etc.
    */

Reply via email to