Searched refs:thread0 (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-current/sys/arm/arm/
H A Dmachdep.c186 struct pcb *pcb = thread0.td_pcb;
209 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack +
367 set_curthread(&thread0);
370 PCPU_SET(curthread, &thread0);
379 proc_linkup0(&proc0, &thread0);
380 thread0.td_kstack = kstack;
381 thread0.td_kstack_pages = kstack_pages;
382 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
383 thread0
[all...]
H A Dundefined.c155 td = (curthread == NULL) ? &thread0 : curthread;
237 * Get the current thread/proc structure or thread0/proc0 if there is
240 td = curthread == NULL ? &thread0 : curthread;
H A Dvfp.c171 thread0.td_pcb->pcb_vfpstate.fpscr =
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h55 #define kcred (thread0.td_ucred)
/freebsd-current/sys/cddl/compat/opensolaris/sys/
H A Dcred.h44 #define kcred (thread0.td_ucred)
/freebsd-current/sys/riscv/riscv/
H A Dmachdep.c292 proc_linkup0(&proc0, &thread0);
293 thread0.td_kstack = kstack;
294 thread0.td_kstack_pages = KSTACK_PAGES;
295 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
296 thread0.td_kstack_pages * PAGE_SIZE) - 1;
297 thread0.td_pcb->pcb_fpflags = 0;
298 thread0.td_frame = &proc0_tf;
299 pcpup->pc_curpcb = thread0.td_pcb;
487 TSRAW(&thread0, TS_ENTE
[all...]
/freebsd-current/sys/powerpc/powerpc/
H A Dmachdep.c388 * Start initializing proc0 and thread0.
390 proc_linkup0(&proc0, &thread0);
391 thread0.td_frame = &frame0;
393 __asm __volatile("mr 13,%0" :: "r"(&thread0));
395 __asm __volatile("mr 2,%0" :: "r"(&thread0));
454 pc->pc_curthread = &thread0;
455 thread0.td_oncpu = bsp.cr_cpuid;
487 * Finish setting up thread0.
489 thread0.td_pcb = (struct pcb *)
490 ((thread0
[all...]
H A Dvm_machdep.c114 KASSERT(td1 == curthread || td1 == &thread0,
/freebsd-current/sys/arm64/arm64/
H A Dmachdep.c399 proc_linkup0(&proc0, &thread0);
400 thread0.td_kstack = kstack;
401 thread0.td_kstack_pages = KSTACK_PAGES;
403 thread0.td_md.md_canary = boot_canary;
405 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
406 thread0.td_kstack_pages * PAGE_SIZE) - 1;
407 thread0.td_pcb->pcb_flags = 0;
408 thread0.td_pcb->pcb_fpflags = 0;
409 thread0
[all...]
H A Dvfp.c338 thread0.td_pcb->pcb_fpusaved->vfp_fpcr = VFPCR_INIT;
/freebsd-current/sys/i386/i386/
H A Dmachdep.c1395 thread0.td_kstack = proc0kstack;
1396 thread0.td_kstack_pages = TD0_KSTACK_PAGES;
1402 proc_linkup0(&proc0, &thread0);
1470 PCPU_SET(curthread, &thread0);
1507 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages *
1572 * Set up thread0 pcb after npxinit calculated pcb + fpu save
1576 thread0.td_pcb = get_pcb_td(&thread0);
1577 thread0
[all...]
H A Delan-mmcr.c350 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq",
/freebsd-current/sys/amd64/amd64/
H A Dmachdep.c1199 PCPU_SET(curthread, &thread0);
1216 PCPU_SET(curpcb, thread0.td_pcb);
1298 TSRAW(&thread0, TS_ENTER, __func__, NULL);
1358 proc_linkup0(&proc0, &thread0);
1363 thread0.td_kstack = physfree - kernphys + KERNSTART;
1364 thread0.td_kstack_pages = kstack_pages;
1365 kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE;
1366 bzero((void *)thread0.td_kstack, kstack0_sz);
1370 * Initialize enough of thread0 for delayed invalidation to
1371 * work very early. Rely on thread0
[all...]
/freebsd-current/crypto/openssl/crypto/chacha/asm/
H A Dchacha-armv8.pl946 my @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
953 my $diff = ($#thread0+1)*6 - $#thread67 - 1;
956 foreach (@thread0) {
965 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
973 foreach (@thread0) {
1060 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
1068 foreach (@thread0) {
1077 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
1085 foreach (@thread0) {
H A Dchacha-armv4.pl741 my @thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,0);
746 foreach (@thread0) {
752 @thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,1);
757 foreach (@thread0) {
H A Dchacha-ppc.pl601 my @thread0=&VMXROUND($A0,$B0,$C0,$D0,0);
606 foreach (@thread0) {
617 @thread0=&VMXROUND($A0,$B0,$C0,$D0,1);
622 foreach (@thread0) {
/freebsd-current/sys/kern/
H A Dkern_tslog.c59 /* A NULL thread is thread0 before curthread is set. */
61 td = &thread0;
H A Dsubr_kdb.c511 KASSERT(td == &thread0 && cold,
665 return (&thread0);
H A Dsubr_turnstile.c391 LIST_INIT(&thread0.td_contested);
392 thread0.td_turnstile = NULL;
433 thread0.td_turnstile = turnstile_alloc();
H A Dkern_kthread.c97 error = fork1(&thread0, &fr);
H A Dinit_main.c474 td = &thread0;
822 error = fork1(&thread0, &fr);
H A Dsched_ule.c1542 /* Add thread0's load since it's running. */
1544 thread0.td_lock = TDQ_LOCKPTR(tdq);
1545 tdq_load_add(tdq, &thread0);
1546 tdq->tdq_curthread = &thread0;
1547 tdq->tdq_lowpri = thread0.td_priority;
1774 * Set up the scheduler specific parts of thread0.
1776 ts0 = td_get_sched(&thread0);
/freebsd-current/contrib/diff/src/
H A Ddiff3.c223 struct diff_block *thread0, *thread1, *last_block;
380 thread0 = process_diff (file[rev_mapping[FILE0]], commonname, &last_block);
381 diff3 = make_3way_diff (thread0, thread1);
523 make_3way_diff (struct diff_block *thread0, struct diff_block *thread1)
576 current[0] = thread0; current[1] = thread1;
221 struct diff_block *thread0, *thread1, *last_block; local
520 make_3way_diff(struct diff_block *thread0, struct diff_block *thread1) argument
/freebsd-current/sys/vm/
H A Dvm_swapout.c627 if (curthread != &thread0)
639 if (curthread != &thread0) {
H A Dswap_pager.c1358 bp->b_rcred = crhold(thread0.td_ucred);
1359 bp->b_wcred = crhold(thread0.td_ucred);
1547 bp->b_rcred = crhold(thread0.td_ucred);
1548 bp->b_wcred = crhold(thread0.td_ucred);
2608 error = swapoff_one(sp, thread0.td_ucred, SWAPOFF_FORCE);

Completed in 425 milliseconds

12