libcsupport: Add sbrk greedy support to consume all sbrk memory

- Move the heap sbrk code into a separate routnine.

- Update heap and workspace greedy allocators to use the common
  sbrk greedy support.

Closes #3982
This commit is contained in:
Chris Johns
2021-02-09 12:48:07 +11:00
parent 570992dc27
commit 03dff2019f
6 changed files with 95 additions and 14 deletions

View File

@@ -713,6 +713,7 @@ source:
- cpukit/libcsupport/src/rtems_heap_extend_via_sbrk.c
- cpukit/libcsupport/src/rtems_heap_greedy.c
- cpukit/libcsupport/src/rtems_heap_null_extend.c
- cpukit/libcsupport/src/rtems_heap_sbrk_greedy.c
- cpukit/libcsupport/src/rtems_memalign.c
- cpukit/libcsupport/src/rtems_mkdir.c
- cpukit/libcsupport/src/rtems_putc.c