diff options
| author | Bernard Xiong <[email protected]> | 2018-11-20 23:53:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-20 23:53:29 +0800 |
| commit | 25ee668feb7c4cfe9d5f131bcbb019e29409c06f (patch) | |
| tree | 47f132d0a7472768deabd2add67d990c0c6e64e7 /src/thread.c | |
| parent | 6b6d122e3673ca64d2171d3daf1ae940edfa699a (diff) | |
| parent | 46dae3f35f5cc44664a26ebd87803156033a166a (diff) | |
Merge pull request #1988 from RT-Thread/dev-4.0.x
Dev 4.0.x
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c index 687852e92e..07c7619c6f 100644 --- a/src/thread.c +++ b/src/thread.c @@ -142,7 +142,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread, (void *)rt_thread_exit); #else thread->sp = (void *)rt_hw_stack_init(thread->entry, thread->parameter, - (void *)((char *)thread->stack_addr + thread->stack_size - 4), + (void *)((char *)thread->stack_addr + thread->stack_size - sizeof(rt_ubase_t)), (void *)rt_thread_exit); #endif |
