diff options
| author | zhangjun <[email protected]> | 2017-07-17 16:55:33 +0800 |
|---|---|---|
| committer | zhangjun <[email protected]> | 2017-07-17 16:55:33 +0800 |
| commit | b334347a244d95007738622ce2daac61694cb314 (patch) | |
| tree | 17447fa4daefc3e6c69f1e320e9351a3113f24bb /libcpu/risc-v/e310/stack.c | |
| parent | e01455155ab5a564eddd467b02a0226b3fa5ea7d (diff) | |
deleted: rtthread.s /*just for debug*/
modified: ../../libcpu/risc-v/e310/context_gcc.S
change ret to mret and switch to new task with mepc
Diffstat (limited to 'libcpu/risc-v/e310/stack.c')
| -rw-r--r-- | libcpu/risc-v/e310/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/e310/stack.c b/libcpu/risc-v/e310/stack.c index 1d17a0c36b..666a2d5bbd 100644 --- a/libcpu/risc-v/e310/stack.c +++ b/libcpu/risc-v/e310/stack.c @@ -88,5 +88,5 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, *(--stk) = 0xffffffff; /* gp */ // *(--stk) = (rt_uint32_t)parameter; /* r0 : argument */ /* return task's current stack address */ - return (rt_uint8_t *)stk; + return (rt_uint8_t *)--stk; } |
