esp-idf/components/heap
Alexey Lapshin 824c8e0593 feat(esp_system): allow .bss to spill over into L2MEM above 0x4ff40000
This commit introduce SOC_MEM_NON_CONTIGUOUS_SRAM flag (that enebled for
esp32p4). If SOC_MEM_NON_CONTIGUOUS_SRAM is enabled:

- LDFLAGS+=--enable-non-contiguous-regions
- ldgen.py replaces "arrays[*]" from sections.ld.in with objects under
  SURROUND keyword. (e.g. from linker.lf: data -> dram0_data SURROUND(foo))
- "mapping[*]" - refers to all other data

If SOC_MEM_NON_CONTIGUOUS_SRAM, sections.ld.in file should contain at
least one block of code like this (otherwise it does not make sense):

  .dram0.bss (NOLOAD) :
  {
    arrays[dram0_bss]
    mapping[dram0_bss]
  } > sram_low

  .dram1.bss (NOLOAD) :
  {
    /* do not place here arrays[dram0_bss] because it may be splited
     * between segments */
    mapping[dram0_bss]
  } > sram_high
2024-02-28 19:41:25 +04:00
..
include fix(heap): fixed missing include in esp_heap_task_info.h 2024-02-09 15:52:08 +08:00
port feat(esp_system): allow .bss to spill over into L2MEM above 0x4ff40000 2024-02-28 19:41:25 +04:00
test_apps feat(heap): Allow tracking of minimum free size for a given time frame 2023-12-21 08:07:01 +01:00
test_multi_heap_host refactor(tools): Tidy up core component files copyright ignore 2024-01-22 18:07:35 +08:00
tlsf@d2e28f8724 fix(heap): Fixed integrity check on used blocks by the tlsf component 2023-10-16 12:29:38 +02:00
CMakeLists.txt heap: fix and re-enable no-format warnings 2023-03-12 21:45:11 +01:00
Kconfig fix(heap): Patch tlsf_check_pool in ROM heap 2023-11-01 09:47:41 +01:00
heap_caps.c feat(heap): Allow tracking of minimum free size for a given time frame 2023-12-21 08:07:01 +01:00
heap_caps_init.c change(heap): fix and clean memory caps defination in memory_layout 2023-09-28 07:53:20 +00:00
heap_caps_linux.c fix(linux_target): added missing include file when CONFIG_HEAP_ABORT_WHEN_ALLOCATION_FAILS 2024-02-09 16:58:06 +08:00
heap_private.h fix(heap): memalign respect malloc_alwaysinternal_limit 2023-11-01 01:58:27 +08:00
heap_task_info.c feat(heap): Dissociate heap poisoning from task tracking 2023-10-18 06:43:22 +02:00
heap_trace_standalone.c fix(heap): prevent double traversal of hashmap in map_find_and_remove 2023-12-19 18:02:08 +01:00
internals.md heap: add documentation about the function placement in IRAM and its usage in ISR 2022-11-24 10:31:14 +01:00
linker.lf fix(heap): Fix bugs in heap task tracking 2023-11-09 09:20:45 +01:00
multi_heap.c feat(heap): Allow tracking of minimum free size for a given time frame 2023-12-21 08:07:01 +01:00
multi_heap_config.h heap: Remove TLSF related files and replace them with the tlsf submodule 2022-08-02 12:55:31 +02:00
multi_heap_internal.h feat(heap): Allow tracking of minimum free size for a given time frame 2023-12-21 08:07:01 +01:00
multi_heap_platform.h fix(heap): Fix bugs in heap task tracking 2023-11-09 09:20:45 +01:00
multi_heap_poisoning.c fix(heap): Fix bugs in heap task tracking 2023-11-09 09:20:45 +01:00