esp-idf/components/xtensa
Jakob Hasse aabdb2c7a1 [system]: Made longjmp save for context switch
* Patched longjmp to be context-switch safe
  longjmp modifies the windowbase and windowstart
  registers, which isn't safe if a context switch
  occurs during the modification. After a context
  switch, windowstart and windowbase will be
  different, leading to a wrongly set windowstart
  bit due to longjmp writing it based on the
  windowbase before the context switch. This
  corrupts the registers at the next window
  overflow reaching that wrongly set bit.

  The solution is to disable interrupts during
  this code. It is only 6 instructions long,
  the impact shouldn't be significant.

  The fix is implemented as a wrapper which
  replaces the original first instructions of
  longjmp which are buggy. Then, it jumps back
  to execute the rest of the original longjmp
  function.

  Added a comparably reliable test to the
  test apps.
2021-07-21 09:48:48 +08:00
..
esp32 soc: create abstraction for cpu related operations 2020-02-27 07:14:19 +05:00
esp32s2 soc: create abstraction for cpu related operations 2020-02-27 07:14:19 +05:00
include esp32: Switch SPIRAM stack in esp_restart_noos() to internal stack 2020-08-10 09:41:35 +00:00
trax Tools: add Python 2 deprecation warning 2020-12-11 09:14:57 +01:00
CMakeLists.txt xtensa: add TRAX support for esp32s2 2020-02-19 14:02:14 +01:00
component.mk [system]: Made longjmp save for context switch 2021-07-21 09:48:48 +08:00
debug_helpers.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
debug_helpers_asm.S esp32: Refactor backtrace and add esp_backtrace_print() 2019-06-19 18:30:18 +08:00
eri.c create xtensa component 2019-03-27 20:24:28 +08:00
expression_with_stack_xtensa.c expression_with_stack: added a tweak on TCB stackpointers to avoid false trigger of stack overflow 2020-09-17 20:46:02 +00:00
expression_with_stack_xtensa_asm.S expression_with_stack: added a tweak on TCB stackpointers to avoid false trigger of stack overflow 2020-09-17 20:46:02 +00:00
linker.lf components: fix ldgen check errors 2021-06-17 12:36:34 +10:00
stdatomic.c atomic: support fetch_and, fetch_and and fetch_xor 2020-03-04 11:35:23 +08:00
trax.c xtensa: add TRAX support for esp32s2 2020-02-19 14:02:14 +01:00