]> begriffs open source - freertos/commit
Support allocating stack from separate heap (#267)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Wed, 24 Feb 2021 02:36:27 +0000 (18:36 -0800)
committerGitHub <noreply@github.com>
Wed, 24 Feb 2021 02:36:27 +0000 (18:36 -0800)
commit2a604f4a2818b8354b5e1a39e388eb5e16cfbc1f
treecce0dc88a1f562f3c22342ffeddefab06e7009bd
parent81f5892105c4d1c93d2941d6ee6c157cfe70bc5c
Support allocating stack from separate heap (#267)

The change adds support for allocating task stacks from separate heap.
When configSTACK_ALLOCATION_FROM_SEPARATE_HEAP is defined as 1 in
FreeRTOSConfig.h, task stacks are allocated and freed using
pvPortMallocStack and vPortFreeStack functions. This allows the
application writer to provide a separate allocator for task stacks.

When configSTACK_ALLOCATION_FROM_SEPARATE_HEAP is defined as 0, task
stacks are allocated and freed using FreeRTOS heap functions
pvPortMalloc and vPortFree.

For backward compatibility, configSTACK_ALLOCATION_FROM_SEPARATE_HEAP
defaults to 0.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
.github/lexicon.txt
include/FreeRTOS.h
include/portable.h
tasks.c