Home
last modified time | relevance | path

Searched refs:KernelStack (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/process/
H A Didle.rs10 process::KernelStack,
39 VirtAddr::new(Self::stack_ptr().data() & (!(KernelStack::ALIGN - 1))); in init_idle()
41 let mut ks = unsafe { KernelStack::from_existed(stack_ptr) } in init_idle()
46 KernelStack::new().unwrap_or_else(|e| { in init_idle()
H A Dmod.rs626 kernel_stack: RwLock<KernelStack>,
629 syscall_stack: RwLock<KernelStack>,
683 pub fn new(name: String, kstack: KernelStack) -> Arc<Self> { in new()
690 pub fn new_idle(cpu_id: u32, kstack: KernelStack) -> Arc<Self> { in new_idle()
707 fn do_create_pcb(name: String, kstack: KernelStack, is_idle: bool) -> Arc<Self> { in do_create_pcb() argument
739 syscall_stack: RwLock::new(KernelStack::new().unwrap()), in do_create_pcb()
870 pub fn kernel_stack(&self) -> RwLockReadGuard<KernelStack> { in kernel_stack() argument
874 pub unsafe fn kernel_stack_force_ref(&self) -> &KernelStack { in kernel_stack_force_ref() argument
880 pub fn kernel_stack_mut(&self) -> RwLockWriteGuard<KernelStack> { in kernel_stack_mut() argument
1399 pub struct KernelStack { struct
[all …]
H A Dfork.rs23 KernelStack, Pid, ProcessControlBlock, ProcessManager,
166 let new_kstack: KernelStack = KernelStack::new()?; in fork()
H A Dsyscall.rs19 KernelStack, Pid, ProcessManager,
295 let new_kstack = KernelStack::new()?; in clone()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs22 KernelStack, ProcessControlBlock, ProcessFlags, ProcessManager, PROCESS_SWITCH_RESULT,
94 pub fn new(kstack: &KernelStack) -> Self { in new()
217 pub fn init_syscall_stack(&mut self, stack: &KernelStack) { in init_syscall_stack() argument
273 let stack_base = VirtAddr::new(ptr.data() & (!(KernelStack::ALIGN - 1))); in arch_current_pcb()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs23 switch_finish_hook, KernelStack, ProcessControlBlock, ProcessFlags, ProcessManager,
320 let stack_base = VirtAddr::new(ptr.data() & (!(KernelStack::ALIGN - 1))); in arch_current_pcb()
375 pub fn new(kstack: &KernelStack) -> Self { in new()