Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dprocess.h68 … : "=m"(prev->thread->rsp), "=m"(prev->thread->rip) \
69 … : "m"(next->thread->rsp), "m"(next->thread->rip), "D"(prev), "S"(next) \
Dprocess.c58 ….mm = &initial_mm, .thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priorit…
111 initial_tss[proc_current_cpu_id].rsp0 = next->thread->rbp; in __switch_to()
118 __asm__ __volatile__("movq %%fs, %0 \n\t" : "=a"(prev->thread->fs)); in __switch_to()
119 __asm__ __volatile__("movq %%gs, %0 \n\t" : "=a"(prev->thread->gs)); in __switch_to()
121 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to()
122 __asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs)); in __switch_to()
502 current_pcb->thread->rip = (ul)ret_from_system_call; in initial_kernel_thread()
503 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
504 current_pcb->thread->fs = USER_DS | 0x3; in initial_kernel_thread()
506 current_pcb->thread->gs = USER_DS | 0x3; in initial_kernel_thread()
[all …]
Dproc-types.h90 struct thread_struct *thread; member
Dfork.c351 pcb->thread = thd; in process_copy_thread()
384 thd->fs = current_pcb->thread->fs; in process_copy_thread()
385 thd->gs = current_pcb->thread->gs; in process_copy_thread()
/DragonOS-0.1.2/kernel/src/smp/
Dsmp.c168 current_pcb->thread = (struct thread_struct *)(current_pcb + 1); // 将线程结构体放置在pcb后方 in smp_ap_start()
169 current_pcb->thread->rbp = _stack_start; in smp_ap_start()
170 current_pcb->thread->rsp = _stack_start; in smp_ap_start()
171 current_pcb->thread->fs = KERNEL_DS; in smp_ap_start()
172 current_pcb->thread->gs = KERNEL_DS; in smp_ap_start()
/DragonOS-0.1.2/kernel/src/debug/traceback/
Dtraceback.c59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
/DragonOS-0.1.2/docs/kernel/process_management/
Dkthread.md43 &emsp;&emsp;printf-style format string for the thread name
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs718 let current_thread = current_pcb().thread; in setup_sigcontext()
736 let mut current_thread = current_pcb().thread; in restore_sigcontext()