diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-19 08:40:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-19 17:41:07 +0100 |
commit | c5af8aa0704d52e1d9757b863ed2831282642a56 (patch) | |
tree | 6acda4c1d3e99d2b51bc3bcdd501725bcca11891 /cpukit/score/src/stackallocatorinit.c | |
parent | validation/ts-performance-0: Add partition tests (diff) | |
download | rtems-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 'cpukit/score/src/stackallocatorinit.c')
-rw-r--r-- | cpukit/score/src/stackallocatorinit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cpukit/score/src/stackallocatorinit.c b/cpukit/score/src/stackallocatorinit.c index 60d243631f..412e3142b3 100644 --- a/cpukit/score/src/stackallocatorinit.c +++ b/cpukit/score/src/stackallocatorinit.c @@ -38,20 +38,12 @@ #endif #include <rtems/score/stack.h> -#include <rtems/score/interr.h> #include <rtems/config.h> void _Stack_Allocator_do_initialize( void ) { rtems_stack_allocate_init_hook init_hook; - if ( - rtems_configuration_get_stack_allocate_hook() == NULL - || rtems_configuration_get_stack_free_hook() == NULL - ) { - _Internal_error( INTERNAL_ERROR_BAD_STACK_HOOK ); - } - init_hook = rtems_configuration_get_stack_allocate_init_hook(); if ( init_hook != NULL ) { |