提交 dd2be93e 编写于 作者: Y Yifan Wu

Fix k210 alignment issue when push cmdargs when sys_exec

上级 67372ac8
......@@ -142,6 +142,8 @@ impl TaskControlBlock {
}
*translated_refmut(memory_set.token(), p as *mut u8) = 0;
}
// make the user_sp aligned to 8B for k210 platform
user_sp -= user_sp % core::mem::size_of::<usize>();
// **** hold current PCB lock
let mut inner = self.acquire_inner_lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册