Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c102 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
105 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
110 …((struct process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->… in smp_init()
122 …t *)cpu_core_info[current_starting_cpu].tss_vaddr, cpu_core_info[current_starting_cpu].stack_start, in smp_init()
123 … cpu_core_info[current_starting_cpu].stack_start, cpu_core_info[current_starting_cpu].stack_start, in smp_init()
160 … __asm__ __volatile__("movq %0, %%rbp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) in smp_ap_start()
162 … __asm__ __volatile__("movq %0, %%rsp \n\t" ::"m"(cpu_core_info[current_starting_cpu].stack_start) in smp_ap_start()
186 current_pcb->thread->rbp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
187 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
/DragonOS-0.1.8/kernel/src/process/
Dfork.c18 … process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_start,
35 unsigned long do_fork(struct pt_regs *regs, unsigned long clone_flags, unsigned long stack_start, in do_fork() argument
64 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork()
130 retval = process_copy_thread(clone_flags, tsk, stack_start, stack_size, regs); in do_fork()
242 … process_copy_thread(uint64_t clone_flags, struct process_control_block *pcb, uint64_t stack_start, in process_copy_thread() argument
269 child_regs->rsp = stack_start; in process_copy_thread()
Dprocess.h88 unsigned long do_fork(struct pt_regs *regs, unsigned long clone_flags, unsigned long stack_start,
/DragonOS-0.1.8/kernel/src/common/
Dcpu.h57 uint64_t stack_start; // 栈基地址 member
/DragonOS-0.1.8/kernel/src/
Dmain.c88 cpu_core_info[0].stack_start = _stack_start; in system_initialize()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs24 fn do_fork(regs: *mut pt_regs, clone_flags: u64, stack_start: u64, stack_size: u64) -> u64; in do_fork()