esp-idf/components/bootloader
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
..
subproject [system]: Made longjmp save for context switch 2021-07-21 09:48:48 +08:00
CMakeLists.txt partition_table: do not always display partition table contents on build 2020-04-08 11:38:43 +08:00
component.mk build system: Use component.mk for all components, refactor bootloader build 2017-07-19 09:10:48 +10:00
Kconfig.projbuild paritition_table: Verify the partition table md5sum when loading the app 2021-06-02 06:35:45 +00:00
Makefile.projbuild bootloader: Secure_boot name replaced by secure_boot_v1 & secure_boot_v2 2020-10-22 05:57:46 +00:00
project_include.cmake feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3 2020-02-25 01:28:22 +05:30
sdkconfig.rename feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3 2020-02-25 01:28:22 +05:30