Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.9/kernel/src/process/
Dexec.rs234 ustack.sp() in push_at()
244 ustack.sp() in push_at()
262 let argv_ptr = ustack.sp(); in push_at()
267 return Ok((ustack.sp(), argv_ptr)); in push_at()
271 let mut sp = ustack.sp(); in push_slice() localVariable
272 sp -= slice.len() * core::mem::size_of::<T>(); in push_slice()
273 sp -= sp.data() % core::mem::align_of::<T>(); in push_slice()
275 unsafe { core::slice::from_raw_parts_mut(sp.data() as *mut T, slice.len()) } in push_slice()
278 ustack.set_sp(sp); in push_slice()
/DragonOS-0.1.9/kernel/src/arch/riscv64/
Dcpu.rs76 pub fn set_kernel_sp(&mut self, sp: usize) { in set_kernel_sp()
77 self.kernel_sp = sp; in set_kernel_sp()
84 pub fn set_user_sp(&mut self, sp: usize) { in set_user_sp()
85 self.user_sp = sp; in set_user_sp()
/DragonOS-0.1.9/kernel/src/arch/riscv64/asm/
Dhead.S72 mv sp, a0
74 add sp, sp, t0
/DragonOS-0.1.9/kernel/src/arch/riscv64/interrupt/
Dentry.rs227 off_sp = const offset_of!(TrapFrame, sp), in _save_context()
321 off_sp = const offset_of!(TrapFrame, sp), in ret_from_exception()
Dmod.rs66 sp: usize, field
/DragonOS-0.1.9/kernel/src/mm/
Ducontext.rs1444 pub fn sp(&self) -> VirtAddr { in sp() method
1448 pub unsafe fn set_sp(&mut self, sp: VirtAddr) { in set_sp()
1449 self.current_sp = sp; in set_sp()
/DragonOS-0.1.9/kernel/src/arch/x86_64/ipc/
Dsignal.rs401 pub sp: *mut c_void, field