summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spinternalerror01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 08:40:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 17:41:07 +0100
commitc5af8aa0704d52e1d9757b863ed2831282642a56 (patch)
tree6acda4c1d3e99d2b51bc3bcdd501725bcca11891 /testsuites/sptests/spinternalerror01/init.c
parentvalidation/ts-performance-0: Add partition tests (diff)
downloadrtems-c5af8aa0704d52e1d9757b863ed2831282642a56.tar.bz2
config: Simplify task stack allocator init
Replace runtime checks with compile time assertions. This makes the INTERNAL_ERROR_BAD_STACK_HOOK obsolete.
Diffstat (limited to 'testsuites/sptests/spinternalerror01/init.c')
-rw-r--r--testsuites/sptests/spinternalerror01/init.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/testsuites/sptests/spinternalerror01/init.c b/testsuites/sptests/spinternalerror01/init.c
index 592cfcfa58..349f9fa1b9 100644
--- a/testsuites/sptests/spinternalerror01/init.c
+++ b/testsuites/sptests/spinternalerror01/init.c
@@ -58,6 +58,17 @@ static void *idle_body(uintptr_t ignored)
return NULL;
}
+static void *stack_allocate(size_t size)
+{
+ (void) size;
+ return NULL;
+}
+
+static void stack_free(void *ptr)
+{
+ (void) ptr;
+}
+
#define CONFIGURE_INITIAL_EXTENSIONS \
{ .fatal = fatal_extension }, \
RTEMS_TEST_INITIAL_EXTENSION
@@ -76,9 +87,9 @@ static void *idle_body(uintptr_t ignored)
#define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER 0
-#define CONFIGURE_TASK_STACK_ALLOCATOR NULL
+#define CONFIGURE_TASK_STACK_ALLOCATOR stack_allocate
-#define CONFIGURE_TASK_STACK_DEALLOCATOR NULL
+#define CONFIGURE_TASK_STACK_DEALLOCATOR stack_free
#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION