From 84e960e9510e2ae35b904698c019627045049059 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 7 Sep 2016 14:25:30 +0200 Subject: stackchk: Fix stack checker thread initialization Commit 0fd6f25507fbea5f4892b71b58837cdda17856b4 relaxed the thread begin extension execution environment. This broke the stack check which only partially initialized the stack pattern in its create extension. Move the part of the begin extension to the create extension. --- cpukit/libmisc/stackchk/stackchk.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'cpukit/libmisc/stackchk/stackchk.h') diff --git a/cpukit/libmisc/stackchk/stackchk.h b/cpukit/libmisc/stackchk/stackchk.h index f7f75b63e2..8ad173357a 100644 --- a/cpukit/libmisc/stackchk/stackchk.h +++ b/cpukit/libmisc/stackchk/stackchk.h @@ -96,19 +96,6 @@ bool rtems_stack_checker_create_extension( Thread_Control *the_thread ); -/** - * @brief Stack Checker Task Begin Extension - * - * This method is the task begin extension for the stack checker. - * - * @param[in] the_thread points to task starting to execute - * - * @note This is called from the internal method _Thread_Handler. - */ -void rtems_stack_checker_begin_extension( - Thread_Control *the_thread -); - /** * @brief Stack Checker Task Context Switch Extension * @@ -138,7 +125,7 @@ void rtems_stack_checker_switch_extension( 0, /* rtems_task_restart */ \ 0, /* rtems_task_delete */ \ rtems_stack_checker_switch_extension, /* task_switch */ \ - rtems_stack_checker_begin_extension, /* task_begin */ \ + 0, /* task_begin */ \ 0, /* task_exitted */ \ 0 /* rtems_stack_checker_fatal_extension */, /* fatal */ \ } -- cgit v1.2.3