Add support for IDLE Thread stack allocator

Add a stack allocator hook specifically for allocation of IDLE thread stacks.
This allows the user to decide if IDLE thread stacks are statically allocated
or handled by the same custom allocator mechanism as other thread stacks.

Closes #4524.
This commit is contained in:
Joel Sherrill
2021-10-07 17:28:26 -05:00
parent d61fbeda59
commit 822ebb4cae
16 changed files with 404 additions and 8 deletions

View File

@@ -1527,6 +1527,7 @@ source:
- cpukit/score/src/semaphore.c
- cpukit/score/src/smpbarrierwait.c
- cpukit/score/src/stackallocator.c
- cpukit/score/src/stackallocatorforidle.c
- cpukit/score/src/stackallocatorfree.c
- cpukit/score/src/stackallocatorinit.c
- cpukit/score/src/thread.c

View File

@@ -395,6 +395,10 @@ links:
uid: spstkalloc
- role: build-dependency
uid: spstkalloc02
- role: build-dependency
uid: spstkalloc03
- role: build-dependency
uid: spstkalloc04
- role: build-dependency
uid: spsysinit01
- role: build-dependency

View File

@@ -0,0 +1,19 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: test-program
cflags: []
copyrights:
- Copyright (C) 2030 embedded brains GmbH (http://www.embedded-brains.de)
cppflags: []
cxxflags: []
enabled-by: true
features: c cprogram
includes: []
ldflags: []
links: []
source:
- testsuites/sptests/spstkalloc03/init.c
stlib: []
target: testsuites/sptests/spstkalloc03.exe
type: build
use-after: []
use-before: []

View File

@@ -0,0 +1,19 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: test-program
cflags: []
copyrights:
- Copyright (C) 2040 embedded brains GmbH (http://www.embedded-brains.de)
cppflags: []
cxxflags: []
enabled-by: true
features: c cprogram
includes: []
ldflags: []
links: []
source:
- testsuites/sptests/spstkalloc04/init.c
stlib: []
target: testsuites/sptests/spstkalloc04.exe
type: build
use-after: []
use-before: []