mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
[FL-3900] Update heap implementation (#4123)
* furi: update heap4 to latest * debug: heap under/overflow testing app * fix formatting * silence pvs warnings * Linker: symbols without type * Infrared: fix crash in universal remotes on long back press * Infrared: properly fix incorrect input handling behavior and crash in universal remote. Fix same issue in hid_app. * FreeRTOSConfig: explicit cast to uint in configTOTAL_HEAP_SIZE * Format sources * C and C++ compatible version of stm32wb55_linker.h Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -9,25 +9,28 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
typedef const char linker_symbol_t;
|
||||
#else
|
||||
typedef const void linker_symbol_t;
|
||||
#endif
|
||||
|
||||
extern const void _stack_end; /**< end of stack */
|
||||
extern const void _stack_size; /**< stack size */
|
||||
extern linker_symbol_t _stack_end; /**< end of stack */
|
||||
extern linker_symbol_t _stack_size; /**< stack size */
|
||||
|
||||
extern const void _sidata; /**< data initial value start */
|
||||
extern const void _sdata; /**< data start */
|
||||
extern const void _edata; /**< data end */
|
||||
extern linker_symbol_t _sidata; /**< data initial value start */
|
||||
extern linker_symbol_t _sdata; /**< data start */
|
||||
extern linker_symbol_t _edata; /**< data end */
|
||||
|
||||
extern const void _sbss; /**< bss start */
|
||||
extern const void _ebss; /**< bss end */
|
||||
extern linker_symbol_t _sbss; /**< bss start */
|
||||
extern linker_symbol_t _ebss; /**< bss end */
|
||||
|
||||
extern const void _sMB_MEM2; /**< RAM2a start */
|
||||
extern const void _eMB_MEM2; /**< RAM2a end */
|
||||
extern linker_symbol_t _sMB_MEM2; /**< RAM2a start */
|
||||
extern linker_symbol_t _eMB_MEM2; /**< RAM2a end */
|
||||
|
||||
extern const void __heap_start__; /**< RAM1 Heap start */
|
||||
extern const void __heap_end__; /**< RAM1 Heap end */
|
||||
extern linker_symbol_t __heap_start__; /**< RAM1 Heap start */
|
||||
extern linker_symbol_t __heap_end__; /**< RAM1 Heap end */
|
||||
|
||||
extern const void __free_flash_start__; /**< Free Flash space start */
|
||||
extern linker_symbol_t __free_flash_start__; /**< Free Flash space start */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user