Skip to content
Commit c661765f authored by Daniel Leung's avatar Daniel Leung Committed by Christopher Friedt
Browse files

arm: cortex-m: setup TLS pointer before switching to main



The TLS global pointer is only set during context switch.
So for the first switch to main thread, the TLS pointer
is NULL which would cause access violation when trying
to access any thread local variables in main thread.
Fix it by setting it before going into main thread.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 5274aa5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment