esp-idf/tools/test_apps/system
Jakob Hasse fc22e3c645 [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-04-23 15:55:31 +08:00
..
bootloader_sections test_apps: increase partition table offset to fix build errors 2021-04-20 14:23:13 +05:30
build_test test_apps: increase partition table offset to fix build errors 2021-04-20 14:23:13 +05:30
cxx_no_except [C++]: wrapper functions around unwind code 2021-04-20 14:27:58 +08:00
gdb_loadable_elf build-system: add loadable elf support for ESP32-S2 and C3 2021-02-02 17:21:39 +08:00
longjmp_test [system]: Made longjmp save for context switch 2021-04-23 15:55:31 +08:00
memprot esp32c3: memprot API upgrade and test application 2021-04-12 13:44:11 +10:00
monitor_ide_integration fix(test_apps): add supported targets for memprot, panic, monitor_ide 2021-01-27 12:35:49 +08:00
no_embedded_paths Support ESP32S3 Beta 3 target 2021-03-18 10:24:22 +08:00
panic panic: handlers can now be placed in flash 2021-04-15 11:58:46 +08:00
startup system: add test for simulating single core esp32 startup 2021-03-29 06:50:47 +00:00