esp-idf/components/freertos/xtensa
Ivan Grokhotkov af7b21851e freertos: fix TLS run-time address calculation
Since dd849ffc, _rodata_start label has been moved to a different
linker output section from where the TLS templates (.tdata, .tbss)
are located. Since link-time addresses of thread-local variables are
calculated relative to the section start address, this resulted in
incorrect calculation of THREADPTR/$tp registers.

Fix by introducing new linker label, _flash_rodata_start, which points
to the .flash.rodata output section where TLS variables are located,
and use it when calculating THREADPTR/$tp.

Also remove the hardcoded rodata section alignment for Xtensa targets.
Alignment of rodata can be affected by the user application, which is
the issue dd849ffc was fixing. To accommodate any possible alignment,
save it in a linker label (_flash_rodata_align) and then use when
calculating THREADPTR. Note that this is not required on RISC-V, since
this target doesn't use TPOFF.
2021-05-10 11:18:09 +08:00
..
include/freertos freertos: Add a small additional stack when optimization set to None 2021-03-19 12:21:14 +08:00
port.c freertos: fix TLS run-time address calculation 2021-05-10 11:18:09 +08:00
portasm.S Merge branch 'feature/freertos_fpu_isr' into 'master' 2020-01-30 13:38:37 +08:00
portmacro_priv.h freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
readme_xtensa.txt freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xt_asm_utils.h freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_context.S freertos: don't clobber a4 while spilling register windows 2020-09-25 16:29:58 +00:00
xtensa_init.c freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_intr_asm.S freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_intr.c freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_loadstore_handler.S Exception handlers for LoadStoreError and LoadStoreAlignmentError 2020-02-26 20:21:59 +08:00
xtensa_overlay_os_hook.c freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_vector_defaults.S freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
xtensa_vectors.S esp32, esp32s2: move panic handling code to new component 2020-03-10 19:56:24 +08:00