Home
last modified time | relevance | path

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

/DragonOS-0.1.7/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.c57 ….mm = &initial_mm, .thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priorit…
110 initial_tss[proc_current_cpu_id].rsp0 = next->thread->rbp; in __switch_to()
118 : "=a"(prev->thread->fs)); in __switch_to()
120 : "=a"(prev->thread->gs)); in __switch_to()
122 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to()
123 __asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs)); in __switch_to()
604 current_pcb->thread->rip = (ul)ret_from_intr; in initial_kernel_thread()
605 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
606 current_pcb->thread->fs = USER_DS | 0x3; in initial_kernel_thread()
608 current_pcb->thread->gs = USER_DS | 0x3; in initial_kernel_thread()
[all …]
Dproc-types.h94 struct thread_struct *thread; member
Dfork.c326 pcb->thread = thd; in process_copy_thread()
359 thd->fs = current_pcb->thread->fs; in process_copy_thread()
360 thd->gs = current_pcb->thread->gs; in process_copy_thread()
/DragonOS-0.1.7/kernel/src/smp/
Dsmp.c174 current_pcb->thread = (struct thread_struct *)(current_pcb + 1); // 将线程结构体放置在pcb后方 in smp_ap_start()
175 current_pcb->thread->rbp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
176 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
177 current_pcb->thread->fs = KERNEL_DS; in smp_ap_start()
178 current_pcb->thread->gs = KERNEL_DS; in smp_ap_start()
/DragonOS-0.1.7/docs/kernel/locking/
Drwlock.md195 let r2=thread::spawn(t_read2);
196 let r1 = thread::spawn(t_read1);
197 let t1 = thread::spawn(t_write);
198 let g1 = thread::spawn(t_upgrade);
/DragonOS-0.1.7/kernel/src/debug/traceback/
Dtraceback.c59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
/DragonOS-0.1.7/docs/kernel/process_management/
Dkthread.md43 &emsp;&emsp;printf-style format string for the thread name
/DragonOS-0.1.7/docs/community/ChangeLog/V0.1.x/
DV0.1.7.md74 - 修复由于DragonOS不支持TLS(thread local storage)导致errno变量无法正常工作的问题. (#8)
/DragonOS-0.1.7/kernel/src/ipc/
Dsignal.rs774 let current_thread = current_pcb().thread; in setup_sigcontext()
792 let mut current_thread = current_pcb().thread; in restore_sigcontext()