fix bug in context_gcc.s and start_gcc.s:

save mie into stack
msh  running normaly
This commit is contained in:
zhangjun
2017-07-31 10:59:59 +08:00
parent d9c0bdc70e
commit a5305c05df
5 changed files with 22 additions and 10 deletions

View File

@@ -86,7 +86,8 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
*(--stk) = 0xffffffff; /* t6 */
*(--stk) = 0xffffffff; /* tp */
*(--stk) = 0xffffffff; /* gp */
*(--stk) = 0x880; /* mie */
// *(--stk) = (rt_uint32_t)parameter; /* r0 : argument */
/* return task's current stack address */
return (rt_uint8_t *)--stk;
return (rt_uint8_t *)stk;
}