From c5af8aa0704d52e1d9757b863ed2831282642a56 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Nov 2020 08:40:13 +0100 Subject: config: Simplify task stack allocator init Replace runtime checks with compile time assertions. This makes the INTERNAL_ERROR_BAD_STACK_HOOK obsolete. --- cpukit/score/src/stackallocatorinit.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'cpukit/score/src/stackallocatorinit.c') 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 -#include #include 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 ) { -- cgit v1.2.3