diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 09:18:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:46:00 +0200 |
commit | 1a30d44266be513129f71957d7864c9975e87907 (patch) | |
tree | 8421bf5eeef983c2aeb0624e5fa97301cc6f466f /cpukit/libmisc/stackchk/check.c | |
parent | libcsupport: Use _Thread_Get_executing() (diff) | |
download | rtems-1a30d44266be513129f71957d7864c9975e87907.tar.bz2 |
libmisc: Use _Thread_Get_executing()
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index d6bca502eb..a3a1911c94 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -304,9 +304,10 @@ void rtems_stack_checker_switch_extension( */ bool rtems_stack_checker_is_blown( void ) { - Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; - bool sp_ok; - bool pattern_ok = true; + Thread_Control *executing = _Thread_Get_executing(); + Stack_Control *the_stack = &executing->Start.Initial_stack; + bool sp_ok; + bool pattern_ok = true; /* * Check for an out of bounds stack pointer @@ -331,7 +332,7 @@ bool rtems_stack_checker_is_blown( void ) * Let's report as much as we can. */ if ( !sp_ok || !pattern_ok ) { - Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); + Stack_check_report_blown_task( executing, pattern_ok ); /* DOES NOT RETURN */ } |