esp-idf/components/bootloader
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
..
subproject [system]: Made longjmp save for context switch 2021-04-23 15:55:31 +08:00
CMakeLists.txt esptool_py: Add esptool_py as a dependency for any component that uses it 2021-03-08 19:47:38 +11:00
component.mk Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
Kconfig.projbuild secure_boot_v2: Adds support SB_V2 for ESP32-C3 ECO3 2021-04-07 19:52:44 +08:00
Makefile.projbuild bootloader: Fix error in Make build system when signature options is on 2021-04-13 11:28:13 +00:00
project_include.cmake cmake partition_table: Check binaries fit in partition spaces at build time 2021-04-16 16:40:47 +10:00
sdkconfig.rename feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3 2020-02-25 01:28:22 +05:30