zephyr/arch
Daniel Leung c661765f1d 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: Daniel Leung <daniel.leung@intel.com>
2021-07-30 20:16:47 -04:00
..
arc ARC: save/restore accumulator registers on all ARCv2 HS CPUs by default 2021-07-06 15:17:26 -05:00
arm arm: cortex-m: setup TLS pointer before switching to main 2021-07-30 20:16:47 -04:00
arm64 arch: arm64: select SCHED_IPI_SUPPORTED for Armv8_R 2021-07-13 09:30:29 -04:00
common cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
nios2 arch: nios2: Fix 10.4 violations 2021-04-10 09:59:37 -04:00
posix cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
riscv arch: riscv: added support for custom initialization of gp register 2021-07-07 20:58:50 -04:00
sparc SPARC: Keep interrupts disabled during kernel init 2021-07-22 10:25:53 -04:00
x86 cmake: oneApi: add oneApi support on windows. 2021-07-27 07:20:12 -04:00
xtensa xtensa: fix booting secondary cores on the dummy thread 2021-05-03 17:13:01 -04:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig arch/Kconfig: Remove stray tab from USERSPACE help 2021-07-15 22:58:28 +03:00