mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 09:26:26 +04:00
Fix k210 alignment issue when push cmdargs when sys_exec
This commit is contained in:
parent
33395156f9
commit
e643af7937
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user