diff options
| author | Bernard Xiong <[email protected]> | 2018-10-26 06:35:42 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-10-26 06:35:42 +0800 |
| commit | 484afe9d2cb07c9e552ff905328eecb7170e8c8a (patch) | |
| tree | c5a3e180665c7d49167da6dbefb08dcf88fff0f3 /src/thread.c | |
| parent | d23a65d54ec519b0b1bb844d3b2758b2253d4ff7 (diff) | |
[Kernel] Add 64bit CPU support.
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 6d79ece54b..82eb18942c 100644 --- a/src/thread.c +++ b/src/thread.c @@ -137,7 +137,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread, /* init thread stack */ rt_memset(thread->stack_addr, '#', thread->stack_size); 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); /* priority init */ |
