mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 11:28:22 +08:00
fbf05db906
Summary: - In case of BUILD_KERNEL, NuttX uses USR mode sp and SVC mode sp. - The kernel runs on SVC mode sp. - While the kernel is running, up_getsp() cannot get the TLS address. - The kernel requires tls_get_info() function. - For the user land, up_getsp() can be used. - tls_getinfo.c is always compiled and tls_get_info() function is filtered by macros in the tls_getinfo.c. Impact: BUILD_KERNEL Testing: test program on custom Cortex-A9 board (BUILD_KERNEL) ostest on sabre-6quad:smp (QEMU, BUILD_FLAT) Signed-off-by: Oki Minabe <minabe.oki@gmail.com>