mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add a test that verifies modifying SP (REG_R13) in the saved register context is honored on signal return. The test pushes values onto the stack, triggers SIGALRM, and in the handler advances SP to skip a value, then verifies the correct value is popped after signal return. This exercises the SP relocation fix in arm_sigdeliver.c for ARMv7-M and ARMv8-M architectures. Signed-off-by: Andrew Au <cshung@gmail.com>
20 lines
555 B
CMake
20 lines
555 B
CMake
# ##############################################################################
|
|
# apps/testing/sig_sp_test/CMakeLists.txt
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# ##############################################################################
|
|
|
|
if(CONFIG_TESTING_SIG_SP_TEST)
|
|
nuttx_add_application(
|
|
NAME
|
|
${CONFIG_TESTING_SIG_SP_TEST_PROGNAME}
|
|
PRIORITY
|
|
${CONFIG_TESTING_SIG_SP_TEST_PRIORITY}
|
|
STACKSIZE
|
|
${CONFIG_TESTING_SIG_SP_TEST_STACKSIZE}
|
|
MODULE
|
|
${CONFIG_TESTING_SIG_SP_TEST}
|
|
SRCS
|
|
sig_sp_test_main.c)
|
|
endif()
|