修复在Os优化时系统调用参数传递问题

This commit is contained in:
zhangzheng
2023-09-30 14:17:34 +08:00
parent 851ea69883
commit 2fc002f2e1
14 changed files with 96 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ void thread_knl_pf_set(thread_t *cur_th, void *pc)
}
void thread_user_pf_set(thread_t *cur_th, void *pc, void *user_sp, void *ram, umword_t stack)
{
assert((((umword_t)user_sp) & 0x7UL) == 0);
// assert((((umword_t)user_sp) & 0x7UL) == 0);
umword_t usp = ((umword_t)(user_sp - 8) & ~0x7UL);
if (stack)