Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/process/
Dprocess.c58 ….thread = &initial_thread, .addr_limit = 0xffffffffffffffff, .pid = 0, .priority = 2, …
111 initial_tss[proc_current_cpu_id].rsp0 = next->thread->rbp; in __switch_to()
119 : "=a"(prev->thread->fs)); in __switch_to()
121 : "=a"(prev->thread->gs)); in __switch_to()
123 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to()
124 __asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs)); in __switch_to()
205 current_pcb->thread->rip = (ul)ret_from_intr; in initial_kernel_thread()
206 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
207 current_pcb->thread->fs = USER_DS | 0x3; in initial_kernel_thread()
209 current_pcb->thread->gs = USER_DS | 0x3; in initial_kernel_thread()
[all …]
Dprocess.h68 … : "=m"(prev->thread->rsp), "=m"(prev->thread->rip) \
69 … : "m"(next->thread->rsp), "m"(next->thread->rip), "D"(prev), "S"(next) \
Dfork.c248 pcb->thread = thd; in process_copy_thread()
281 thd->fs = current_pcb->thread->fs; in process_copy_thread()
282 thd->gs = current_pcb->thread->gs; in process_copy_thread()
Dproc-types.h91 struct thread_struct *thread; member
/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c185 current_pcb->thread = (struct thread_struct *)(current_pcb + 1); // 将线程结构体放置在pcb后方 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()
188 current_pcb->thread->fs = KERNEL_DS; in smp_ap_start()
189 current_pcb->thread->gs = KERNEL_DS; in smp_ap_start()
/DragonOS-0.1.8/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.8/kernel/src/debug/traceback/
Dtraceback.c59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
/DragonOS-0.1.8/docs/kernel/process_management/
Dkthread.md43 &emsp;&emsp;printf-style format string for the thread name
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.7.md74 - 修复由于DragonOS不支持TLS(thread local storage)导致errno变量无法正常工作的问题. (#8)
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs729 let current_thread = current_pcb().thread; in setup_sigcontext()
747 let mut current_thread = current_pcb().thread; in restore_sigcontext()