We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e55c520 commit a43dbc4Copy full SHA for a43dbc4
os/src/task/task.rs
@@ -142,6 +142,8 @@ impl TaskControlBlock {
142
}
143
*translated_refmut(memory_set.token(), p as *mut u8) = 0;
144
145
+ // make the user_sp aligned to 8B for k210 platform
146
+ user_sp -= user_sp % core::mem::size_of::<usize>();
147
148
// **** hold current PCB lock
149
let mut inner = self.acquire_inner_lock();
0 commit comments