testsuite: allow disabling stack protection in usermode tests
This commit introduces a new Kconfig option in the testsuite sub-system, which allows us to disable HW stack protection from tests that run with user mode enabled. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
b0b4597ff1
commit
912c55847c
1 changed files with 10 additions and 1 deletions
|
@ -92,12 +92,21 @@ config TEST_ENABLE_USERSPACE
|
||||||
case itself indicates that it exercises user mode via
|
case itself indicates that it exercises user mode via
|
||||||
CONFIG_TEST_USERSPACE.
|
CONFIG_TEST_USERSPACE.
|
||||||
|
|
||||||
|
config TEST_USERSPACE_WITHOUT_HW_STACK_PROTECTION
|
||||||
|
bool "Run User Mode tests without additionally enabling stack protection"
|
||||||
|
depends on TEST_ENABLE_USERSPACE
|
||||||
|
help
|
||||||
|
A HW platform might not have sufficient MPU/MMU capabilities to support
|
||||||
|
running all test cases with User Mode and HW Stack Protection features
|
||||||
|
simultaneously enabled. For this platforms we execute the User Mode-
|
||||||
|
related tests without enabling HW stack protection.
|
||||||
|
|
||||||
config TEST_HW_STACK_PROTECTION
|
config TEST_HW_STACK_PROTECTION
|
||||||
bool "Enable hardware-based stack overflow detection if available"
|
bool "Enable hardware-based stack overflow detection if available"
|
||||||
depends on ARCH_HAS_STACK_PROTECTION
|
depends on ARCH_HAS_STACK_PROTECTION
|
||||||
depends on TEST
|
depends on TEST
|
||||||
select HW_STACK_PROTECTION
|
select HW_STACK_PROTECTION
|
||||||
default y
|
default y if !TEST_USERSPACE_WITHOUT_HW_STACK_PROTECTION
|
||||||
help
|
help
|
||||||
This option will enable hardware-based stack protection by default
|
This option will enable hardware-based stack protection by default
|
||||||
for all test cases if the hardware supports it.
|
for all test cases if the hardware supports it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue