espressif / newlib-esp32

Version of newlib used in ESP32 ROM and ESP-IDF
GNU General Public License v2.0
31 stars 18 forks source link

setjmp doesn't work #5

Closed szmodz closed 4 years ago

szmodz commented 4 years ago

Moved: https://github.com/espressif/esp-idf/issues/4541

szmodz commented 4 years ago

I think the implementation should be reviewed carefully, since it may have more issues.

igrr commented 4 years ago

_JBLEN is in the units of words (so 12*4+4*4+4 = 17 * 4 bytes) so it looks correct.

https://github.com/espressif/newlib-esp32/blob/1b349a3f9e6303067f1ca239db881bf8dd0d511a/newlib/libc/include/machine/setjmp.h#L421

szmodz commented 4 years ago

Yes, I figured that out, that's why I closed the issue. Still, setjmp doesn't work.