incubator-nuttx/arch/arm64
Ville Juven ca4bd482a0 arm64/task/pthread_start: Fix rare issue with context register location
There is a tiny possibility that when a process is started a trap is
taken which causes a context switch. This moves the kernel stack
unexpectedly and the task start logic no longer works.

Fix this by recording the initial context location, and use that to
trampoline into the user process with interrupts disabled. This ensures
the context stays intact AND the kernel stack is fully unwound before
the user process starts.
2024-09-11 08:59:01 -03:00
..
include arm64/task/pthread_start: Fix rare issue with context register location 2024-09-11 08:59:01 -03:00
src arm64/task/pthread_start: Fix rare issue with context register location 2024-09-11 08:59:01 -03:00
CMakeLists.txt CMake:init arm64 CMake qemu-armv8a build 2023-12-27 07:27:17 -08:00
Kconfig arch/arm64: Move ELF_64BIT selection to arch/Kconfig 2024-08-28 07:45:36 -04:00