Searched refs:sp (Results 1 – 12 of 12) sorted by relevance
/DragonOS/kernel/crates/rbpf/src/ |
H A D | stack.rs | 6 sp: u16, field 16 sp: 0, in new() 27 sp: 0, in with_capacity() 67 pub fn save_sp(&mut self, sp: u16) { in save_sp() 68 self.sp = sp; in save_sp() 73 self.sp in get_sp()
|
/DragonOS/kernel/src/process/ |
H A D | exec.rs | 235 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 -= core::mem::size_of_val(slice); 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/kernel/src/arch/riscv64/ |
H A D | cpu.rs | 86 pub fn set_kernel_sp(&mut self, sp: usize) { in set_kernel_sp() 87 self.kernel_sp = sp; in set_kernel_sp() 94 pub fn set_user_sp(&mut self, sp: usize) { in set_user_sp() 95 self.user_sp = sp; in set_user_sp()
|
H A D | kprobe.rs | 16 pub sp: usize, field 53 sp: trap_frame.sp, in from()
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | mod.rs | 124 child_trapframe.sp = usp; in copy_thread() 216 let mut sp = task.kernel_stack().stack_max_address().data(); in task_trapframe() localVariable 217 sp -= core::mem::size_of::<TrapFrame>(); in task_trapframe() 218 return (sp as *mut TrapFrame).as_mut().unwrap(); in task_trapframe() 316 let mut sp: usize; in arch_current_pcb() localVariable 317 unsafe { asm!("mv {}, sp", lateout(reg) sp, options(nostack)) }; in arch_current_pcb() 318 let ptr = VirtAddr::new(sp); in arch_current_pcb()
|
H A D | syscall.rs | 25 regs.sp = user_sp.data(); in arch_do_execve()
|
/DragonOS/kernel/src/arch/riscv64/interrupt/ |
H A D | mod.rs | 72 pub sp: usize, field 125 sp: 0, in new()
|
H A D | entry.rs | 151 off_sp = const offset_of!(TrapFrame, sp), in _save_context() 245 off_sp = const offset_of!(TrapFrame, sp), in ret_from_exception()
|
/DragonOS/kernel/src/arch/riscv64/asm/ |
H A D | head.S | 72 mv sp, a0 74 add sp, sp, t0
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | pages.rs | 477 Some(ref mut sp) => Rawlink::some(*sp), in next()
|
/DragonOS/kernel/src/mm/ |
H A D | ucontext.rs | 1846 pub fn sp(&self) -> VirtAddr { in sp() method 1850 pub unsafe fn set_sp(&mut self, sp: VirtAddr) { in set_sp() 1851 self.current_sp = sp; in set_sp()
|
/DragonOS/kernel/src/arch/x86_64/ipc/ |
H A D | signal.rs | 402 pub sp: *mut c_void, field
|