diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 09:16:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:46:00 +0200 |
commit | d7ce33f17ed3259c7864f25bdb49eaf9774464bf (patch) | |
tree | 93a811882705f050a04334ddf654362dd714a2e1 /testsuites/libtests/stackchk/blow.c | |
parent | posix: Use _Thread_Get_executing() (diff) | |
download | rtems-d7ce33f17ed3259c7864f25bdb49eaf9774464bf.tar.bz2 |
testsuites: Use _Thread_Get_executing()
Diffstat (limited to 'testsuites/libtests/stackchk/blow.c')
-rw-r--r-- | testsuites/libtests/stackchk/blow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/libtests/stackchk/blow.c b/testsuites/libtests/stackchk/blow.c index 5bcc8eea4a..8db9d25134 100644 --- a/testsuites/libtests/stackchk/blow.c +++ b/testsuites/libtests/stackchk/blow.c @@ -30,6 +30,7 @@ void blow_stack(void) { volatile uint32_t *low, *high; unsigned char *area; + Thread_Control *executing; b(); @@ -38,13 +39,14 @@ void blow_stack(void) * does not cause problems :) */ - area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area; + executing = _Thread_Get_executing(); + area = (unsigned char *)executing->Start.Initial_stack.area; /* Look in the stack checker implementation for this magic offset */ low = (volatile uint32_t *) \ (area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE); high = (volatile uint32_t *) - (area + _Thread_Executing->Start.Initial_stack.size - 16); + (area + executing->Start.Initial_stack.size - 16); low[0] = 0x11111111; low[1] = 0x22222222; |