esp-idf/components/esp_rom
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
..
esp32 secure_boot: Secure Boot V2 verify app signature on update (without Secure boot) 2021-03-15 12:30:20 +00:00
esp32c3 Support new section addr and wifi lib for ESP32C3-ECO3. 2021-03-29 10:27:10 +08:00
esp32s2 fix: add spi_flash.h for s2, s3, c3 targets in cpu_start.c 2021-01-27 12:35:49 +08:00
esp32s3 esp_wifi: support esp32s3 beta3 wifi 2021-04-16 00:38:20 +08:00
include Support ESP32S3 Beta 3 target 2021-03-18 10:24:22 +08:00
patches [system]: Made longjmp save for context switch 2021-04-23 15:55:31 +08:00
test ci: enable previously disabled unit tests 2021-03-29 18:36:41 +08:00
CMakeLists.txt [system]: Made longjmp save for context switch 2021-04-23 15:55:31 +08:00
component.mk [system]: Made longjmp save for context switch 2021-04-23 15:55:31 +08:00
Kconfig.projbuild efuse: can disable boot ROM log from Kconfig 2021-02-22 20:56:43 +08:00