Add option to enable stackcheck per architecture
This commit is contained in:
parent
068fc43170
commit
ded44679e9
@ -164,6 +164,7 @@ config ARCH_CHIP_SAM34
|
|||||||
select ARCH_HAVE_CMNVECTOR
|
select ARCH_HAVE_CMNVECTOR
|
||||||
select ARCH_HAVE_MPU
|
select ARCH_HAVE_MPU
|
||||||
select ARCH_HAVE_RAMFUNCS
|
select ARCH_HAVE_RAMFUNCS
|
||||||
|
select ARMV7M_HAVE_STACKCHECK
|
||||||
---help---
|
---help---
|
||||||
Atmel SAM3 (ARM Cortex-M3) and SAM4 (ARM Cortex-M4) architectures
|
Atmel SAM3 (ARM Cortex-M3) and SAM4 (ARM Cortex-M4) architectures
|
||||||
|
|
||||||
@ -174,6 +175,7 @@ config ARCH_CHIP_SAMV7
|
|||||||
select ARCH_CORTEXM7
|
select ARCH_CORTEXM7
|
||||||
select ARCH_HAVE_MPU
|
select ARCH_HAVE_MPU
|
||||||
select ARCH_HAVE_RAMFUNCS
|
select ARCH_HAVE_RAMFUNCS
|
||||||
|
select ARMV7M_HAVE_STACKCHECK
|
||||||
---help---
|
---help---
|
||||||
Atmel SAMV7 (ARM Cortex-M7) architectures
|
Atmel SAMV7 (ARM Cortex-M7) architectures
|
||||||
|
|
||||||
@ -183,6 +185,7 @@ config ARCH_CHIP_STM32
|
|||||||
select ARCH_HAVE_MPU
|
select ARCH_HAVE_MPU
|
||||||
select ARCH_HAVE_I2CRESET
|
select ARCH_HAVE_I2CRESET
|
||||||
select ARCH_HAVE_HEAPCHECK
|
select ARCH_HAVE_HEAPCHECK
|
||||||
|
select ARMV7M_HAVE_STACKCHECK
|
||||||
---help---
|
---help---
|
||||||
STMicro STM32 architectures (ARM Cortex-M3/4).
|
STMicro STM32 architectures (ARM Cortex-M3/4).
|
||||||
|
|
||||||
|
@ -106,10 +106,14 @@ config ARMV7M_OABI_TOOLCHAIN
|
|||||||
Most of the older buildroot toolchains are OABI and are named
|
Most of the older buildroot toolchains are OABI and are named
|
||||||
arm-nuttx-elf- vs. arm-nuttx-eabi-
|
arm-nuttx-elf- vs. arm-nuttx-eabi-
|
||||||
|
|
||||||
|
config ARMV7M_HAVE_STACKCHECK
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config ARMV7M_STACKCHECK
|
config ARMV7M_STACKCHECK
|
||||||
bool "Check for stack overflow on each function call"
|
bool "Check for stack overflow on each function call"
|
||||||
default n
|
default n
|
||||||
depends on ARCH_CHIP_STM32
|
depends on ARMV7M_HAVE_STACKCHECK
|
||||||
---help---
|
---help---
|
||||||
This check uses R10 to check for a stack overflow within each function
|
This check uses R10 to check for a stack overflow within each function
|
||||||
call. This has performances and code size impacts, but it will be able to
|
call. This has performances and code size impacts, but it will be able to
|
||||||
|
Loading…
Reference in New Issue
Block a user