summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadstackfree.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadstackfree.c')
-rw-r--r--cpukit/score/src/threadstackfree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/src/threadstackfree.c b/cpukit/score/src/threadstackfree.c
index 305b1eafba..ad23a57de2 100644
--- a/cpukit/score/src/threadstackfree.c
+++ b/cpukit/score/src/threadstackfree.c
@@ -29,6 +29,7 @@
#include <rtems/score/threadq.h>
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
+#include <rtems/config.h>
/*
* _Thread_Stack_Free
@@ -53,8 +54,10 @@ void _Thread_Stack_Free(
* routine properly matches the allocation of the stack.
*/
- if ( _CPU_Table.stack_free_hook )
- (*_CPU_Table.stack_free_hook)( the_thread->Start.Initial_stack.area );
+ if ( _Configuration_Table->stack_free_hook )
+ (*_Configuration_Table->stack_free_hook)(
+ the_thread->Start.Initial_stack.area
+ );
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
}