incubator-nuttx/arch
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
..
arm
arm64
avr
ceva
dummy
hc
mips
misoc
or1k
renesas
risc-v
sim
sparc
tricore
x86
x86_64
xtensa
z16
z80
CMakeLists.txt
Kconfig