1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp_common
Marian Buschsieweke e93b5e4b98
core/thread: fix thread_measure_stack_free()
`thread_measure_stack_free()` previously assumed that reading past the
stack is safe. When the stack was indeed part of a thread, the
`thread_t` structure is put after the stack, increasing the odds of
this assumption to hold. However, `thread_measure_stack_free()` could
also be used on the ISR stack, which may be allocated at the end of
SRAM.

A second parameter had to be added to indicate the stack size, so that
reading past the stack can now be prevented.

This also makes valgrind happy on `native`/`native64`.
2024-05-31 19:54:10 +02:00
..
esp-now makefiles, treewide: Remove MCU variable 2024-02-18 20:46:09 +01:00
esp-riscv *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
esp-wifi makefiles, treewide: Remove MCU variable 2024-02-18 20:46:09 +01:00
esp-xtensa *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
freertos core/thread: fix thread_measure_stack_free() 2024-05-31 19:54:10 +02:00
include makefiles, treewide: Remove MCU variable 2024-02-18 20:46:09 +01:00
periph *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
vendor *Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
doc.txt cpu/esp_common: added for common files for ESP SoC 2018-12-27 17:28:46 +01:00
esp_events.c makefiles, treewide: Remove MCU variable 2024-02-18 20:46:09 +01:00
irq_arch.c cpu/esp_common: move irq_arch xtensa code to module esp_xtensa 2022-06-25 23:22:59 +02:00
Kconfig *Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
lib_printf.c cpu/esp: Handle format print errors 2024-04-25 15:19:02 +02:00
Makefile cpu/esp_common: add module esp_riscv to makefiles 2022-07-18 13:51:33 +02:00
Makefile.dep cpu/esp_common: esp_eth implements the legacy netdev API 2024-04-30 09:49:36 +02:00
Makefile.features tree-wide: Introduce netif feature and use it 2024-05-22 10:39:56 +02:00
Makefile.include cpu/esp32: add flashpage support 2023-01-07 14:49:36 +01:00
syscalls.c makefiles, treewide: Remove MCU variable 2024-02-18 20:46:09 +01:00
thread_arch.c core/thread: fix thread_measure_stack_free() 2024-05-31 19:54:10 +02:00
tools.c esp/esp*: move common code to cpu/esp_common 2020-02-21 09:09:34 +01:00