diff --git a/public/rtos/ape_spu/libsmartos.a b/public/rtos/ape_spu/libsmartos.a index 25e7609..8027f63 100644 Binary files a/public/rtos/ape_spu/libsmartos.a and b/public/rtos/ape_spu/libsmartos.a differ diff --git a/public/rtos/code/smartos_code/src/smartos.s.c b/public/rtos/code/smartos_code/src/smartos.s.c index 9565d20..40762ac 100644 --- a/public/rtos/code/smartos_code/src/smartos.s.c +++ b/public/rtos/code/smartos_code/src/smartos.s.c @@ -97,7 +97,7 @@ void sys_task_reg(sys_info *task_val,start_hook_func *user_hook,int apeid) tcb_handle->loop_fun = task_val->loop_fun; tcb_handle->user_init_hook = user_hook; tcb_handle->apeid = apeid; - init_st_ptr = stack_top; + init_st_ptr = stack_down; smart_task_create(sys_entry, tcb_handle, (unsigned int*)stack_top,