diff --git a/arch/arm/src/armv7-m/up_lazyexception.S b/arch/arm/src/armv7-m/up_lazyexception.S index bf02c45dc4..16af52e64e 100644 --- a/arch/arm/src/armv7-m/up_lazyexception.S +++ b/arch/arm/src/armv7-m/up_lazyexception.S @@ -334,7 +334,7 @@ exception_common: */ bx r14 /* And return */ - .size handlers, .-handlers + .size exception_common, .-exception_common /************************************************************************************************ * Name: g_intstackalloc/g_intstackbase diff --git a/arch/arm/src/efm32/Make.defs b/arch/arm/src/efm32/Make.defs index 50efb7ef90..6ab29250fd 100644 --- a/arch/arm/src/efm32/Make.defs +++ b/arch/arm/src/efm32/Make.defs @@ -51,7 +51,7 @@ CMN_CSRCS += up_sigdeliver.c up_stackframe.c up_svcall.c up_systemreset.c CMN_CSRCS += up_udelay.c up_unblocktask.c up_usestack.c up_vfork.c ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S diff --git a/arch/arm/src/lpc17xx/Make.defs b/arch/arm/src/lpc17xx/Make.defs index dc64626091..0b16e7225c 100644 --- a/arch/arm/src/lpc17xx/Make.defs +++ b/arch/arm/src/lpc17xx/Make.defs @@ -58,7 +58,7 @@ CMN_CSRCS += up_sigdeliver.c up_stackframe.c up_unblocktask.c up_usestack.c CMN_CSRCS += up_doirq.c up_hardfault.c up_svcall.c up_checkstack.c up_vfork.c ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S diff --git a/arch/arm/src/lpc43xx/Make.defs b/arch/arm/src/lpc43xx/Make.defs index 5483d11eea..dda686e739 100644 --- a/arch/arm/src/lpc43xx/Make.defs +++ b/arch/arm/src/lpc43xx/Make.defs @@ -48,7 +48,7 @@ CMN_CSRCS += up_unblocktask.c up_usestack.c up_doirq.c up_hardfault.c CMN_CSRCS += up_svcall.c up_vfork.c ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S diff --git a/arch/arm/src/sam34/Make.defs b/arch/arm/src/sam34/Make.defs index 2be1b7d180..59b8568197 100644 --- a/arch/arm/src/sam34/Make.defs +++ b/arch/arm/src/sam34/Make.defs @@ -59,7 +59,7 @@ CMN_CSRCS += up_doirq.c up_hardfault.c up_svcall.c up_vfork.c # Configuration-dependent common files ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S diff --git a/arch/arm/src/samv7/Make.defs b/arch/arm/src/samv7/Make.defs index e959ce5c84..763953b5e6 100644 --- a/arch/arm/src/samv7/Make.defs +++ b/arch/arm/src/samv7/Make.defs @@ -56,7 +56,7 @@ CMN_CSRCS += up_doirq.c up_hardfault.c up_svcall.c up_vfork.c # Configuration-dependent common files ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S @@ -68,6 +68,13 @@ ifeq ($(CONFIG_ARMV7M_DCACHE),y) CMN_CSRCS += up_dcache.c endif +ifeq ($(CONFIG_ARCH_FPU),y) +CMN_ASRCS += up_fpu.S +ifneq ($(CONFIG_ARMV7M_CMNVECTOR),y) +CMN_CSRCS += up_copyarmstate.c +endif +endif + ifeq ($(CONFIG_ARCH_RAMVECTORS),y) CMN_CSRCS += up_ramvec_initialize.c up_ramvec_attach.c endif diff --git a/arch/arm/src/stm32/Make.defs b/arch/arm/src/stm32/Make.defs index eb4d2e0db0..598c74b3af 100644 --- a/arch/arm/src/stm32/Make.defs +++ b/arch/arm/src/stm32/Make.defs @@ -59,7 +59,7 @@ CMN_CSRCS += up_stackcheck.c endif ifeq ($(CONFIG_ARMV7M_CMNVECTOR),y) -ifeq ($(CONFIG_ARMV7M_ARMV7M_LAZYFPU),y) +ifeq ($(CONFIG_ARMV7M_LAZYFPU),y) CMN_ASRCS += up_lazyexception.S else CMN_ASRCS += up_exception.S diff --git a/configs/samv71-xult/nsh/defconfig b/configs/samv71-xult/nsh/defconfig index b04f15b69b..6d08445870 100644 --- a/configs/samv71-xult/nsh/defconfig +++ b/configs/samv71-xult/nsh/defconfig @@ -109,10 +109,11 @@ CONFIG_ARCH_CHIP="samv7" # CONFIG_ARMV7M_USEBASEPRI is not set CONFIG_ARCH_HAVE_CMNVECTOR=y CONFIG_ARMV7M_CMNVECTOR=y -# CONFIG_ARMV7M_LAZYFPU is not set +CONFIG_ARMV7M_LAZYFPU=y CONFIG_ARCH_HAVE_FPU=y CONFIG_ARCH_HAVE_DPFPU=y -# CONFIG_ARCH_FPU is not set +CONFIG_ARCH_FPU=y +CONFIG_ARCH_DPFPU=y # CONFIG_ARMV7M_MPU is not set #