Home
last modified time | relevance | path

Searched refs:kstack (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/process/
H A Didle.rs37 let kstack = if unlikely(i == 0) { in init_idle() localVariable
51 let idle_pcb = ProcessControlBlock::new_idle(i, kstack); in init_idle()
H A Dmod.rs683 pub fn new(name: String, kstack: KernelStack) -> Arc<Self> { in new()
684 return Self::do_create_pcb(name, kstack, false); in new()
690 pub fn new_idle(cpu_id: u32, kstack: KernelStack) -> Arc<Self> { in new_idle()
692 return Self::do_create_pcb(name, kstack, true); in new_idle()
707 fn do_create_pcb(name: String, kstack: KernelStack, is_idle: bool) -> Arc<Self> { in do_create_pcb()
726 let arch_info = SpinLock::new(ArchPCBInfo::new(&kstack)); in do_create_pcb()
738 kernel_stack: RwLock::new(kstack), in do_create_pcb()
/DragonOS/kernel/src/arch/x86_64/syscall/
H A Dmod.rs37 pub fn set_kstack(&mut self, kstack: VirtAddr) { in set_kstack()
38 self.kaddr = kstack; in set_kstack()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs94 pub fn new(kstack: &KernelStack) -> Self { in new()
117 r.rsp = kstack.stack_max_address().data() - 8; in new()
118 r.rbp = kstack.stack_max_address().data(); in new()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs375 pub fn new(kstack: &KernelStack) -> Self { in new()
380 ksp: kstack.stack_max_address().data(), in new()