Skip to content
Commit 718597fe authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

arch/arm: Fix THREAD_MONITOR entry struct



On ARM, the __thread_entry struct pointer used when
CONFIG_THREAD_MONITOR is enabled was pointing to the initial exception
stack frame.  That's not right: even though this contains all the same
info, it's not layout-compatible with the API struct.  And once the
thread starts running, the ESF gets unwound and the memory recliamed
for the stack frame of the entry function!

Stuff the __thread_entry struct into its own memory at the bottom of
the stack like the other architectures do.  Fixes #7541

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent ed5fb3ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment