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

12

/freebsd-13-stable/sys/cddl/compat/opensolaris/sys/
H A Dcred.h46 #define kcred (thread0.td_ucred)
/freebsd-13-stable/sys/mips/mips/
H A Dmachdep.c274 PCPU_SET(curthread, &thread0);
287 proc_linkup0(&proc0, &thread0);
292 thread0.td_kstack = kstack0;
293 thread0.td_kstack_pages = KSTACK_PAGES;
296 * thread0 is the only thread that has kstack located in KSEG0
299 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
300 thread0.td_kstack_pages * PAGE_SIZE) - 1;
301 thread0.td_frame = &thread0
[all...]
/freebsd-13-stable/sys/powerpc/powerpc/
H A Dmachdep.c390 * Start initializing proc0 and thread0.
392 proc_linkup0(&proc0, &thread0);
393 thread0.td_frame = &frame0;
395 __asm __volatile("mr 13,%0" :: "r"(&thread0));
397 __asm __volatile("mr 2,%0" :: "r"(&thread0));
447 pc->pc_curthread = &thread0;
448 thread0.td_oncpu = bsp.cr_cpuid;
480 * Finish setting up thread0.
482 thread0.td_pcb = (struct pcb *)
483 ((thread0
[all...]
H A Dvm_machdep.c116 KASSERT(td1 == curthread || td1 == &thread0,
/freebsd-13-stable/sys/arm/arm/
H A Dmachdep.c186 struct pcb *pcb = thread0.td_pcb;
209 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack +
687 set_curthread(&thread0);
690 PCPU_SET(curthread, &thread0);
699 proc_linkup0(&proc0, &thread0);
700 thread0.td_kstack = kstack;
701 thread0.td_kstack_pages = kstack_pages;
702 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
703 thread0
[all...]
H A Dundefined.c146 td = (curthread == NULL) ? &thread0 : curthread;
228 * Get the current thread/proc structure or thread0/proc0 if there is
231 td = curthread == NULL ? &thread0 : curthread;
H A Dvfp.c144 thread0.td_pcb->pcb_vfpstate.fpscr =
/freebsd-13-stable/sys/riscv/riscv/
H A Dmachdep.c678 proc_linkup0(&proc0, &thread0);
679 thread0.td_kstack = kstack;
680 thread0.td_kstack_pages = KSTACK_PAGES;
681 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
682 thread0.td_kstack_pages * PAGE_SIZE) - 1;
683 thread0.td_pcb->pcb_fpflags = 0;
684 thread0.td_frame = &proc0_tf;
685 pcpup->pc_curpcb = thread0.td_pcb;
870 TSRAW(&thread0, TS_ENTE
[all...]
/freebsd-13-stable/sys/arm64/arm64/
H A Dmachdep.c918 proc_linkup0(&proc0, &thread0);
919 thread0.td_kstack = kstack;
920 thread0.td_kstack_pages = KSTACK_PAGES;
921 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
922 thread0.td_kstack_pages * PAGE_SIZE) - 1;
923 thread0.td_pcb->pcb_fpflags = 0;
924 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate;
925 thread0
[all...]
H A Dvfp.c265 thread0.td_pcb->pcb_fpusaved->vfp_fpcr = initial_fpcr;
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h51 #define kcred (thread0.td_ucred)
/freebsd-13-stable/sys/amd64/amd64/
H A Dmachdep.c1546 PCPU_SET(curthread, &thread0);
1563 PCPU_SET(curpcb, thread0.td_pcb);
1617 TSRAW(&thread0, TS_ENTER, __func__, NULL);
1651 proc_linkup0(&proc0, &thread0);
1656 thread0.td_kstack = physfree + KERNBASE;
1657 thread0.td_kstack_pages = kstack_pages;
1658 kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE;
1659 bzero((void *)thread0.td_kstack, kstack0_sz);
1663 * Initialize enough of thread0 for delayed invalidation to
1664 * work very early. Rely on thread0
[all...]
/freebsd-13-stable/crypto/openssl/crypto/chacha/asm/
H A Dchacha-armv8.pl456 my @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
461 foreach (@thread0) {
467 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
472 foreach (@thread0) {
802 my @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
809 my $diff = ($#thread0+1)*6 - $#thread67 - 1;
812 foreach (@thread0) {
821 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
829 foreach (@thread0) {
916 @thread0
[all...]
H A Dchacha-armv4.pl732 my @thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,0);
737 foreach (@thread0) {
743 @thread0=&NEONROUND($a0,$b0,$c0,$d0,$t0,1);
748 foreach (@thread0) {
H A Dchacha-ppc.pl597 my @thread0=&VMXROUND($A0,$B0,$C0,$D0,0);
602 foreach (@thread0) {
613 @thread0=&VMXROUND($A0,$B0,$C0,$D0,1);
618 foreach (@thread0) {
/freebsd-13-stable/sys/i386/i386/
H A Dmachdep.c2318 thread0.td_kstack = proc0kstack;
2319 thread0.td_kstack_pages = TD0_KSTACK_PAGES;
2325 proc_linkup0(&proc0, &thread0);
2389 PCPU_SET(curthread, &thread0);
2425 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages *
2485 * Set up thread0 pcb after npxinit calculated pcb + fpu save
2489 thread0.td_pcb = get_pcb_td(&thread0);
2490 thread0
[all...]
H A Delan-mmcr.c352 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq",
/freebsd-13-stable/contrib/diff/src/
H A Ddiff3.c223 struct diff_block *thread0, *thread1, *last_block;
381 thread0 = process_diff (file[rev_mapping[FILE0]], commonname, &last_block);
382 diff3 = make_3way_diff (thread0, thread1);
524 make_3way_diff (struct diff_block *thread0, struct diff_block *thread1)
577 current[0] = thread0; current[1] = thread1;
221 struct diff_block *thread0, *thread1, *last_block; local
521 make_3way_diff(struct diff_block *thread0, struct diff_block *thread1) argument
/freebsd-13-stable/sys/vm/
H A Dvm_swapout.c623 if (curthread != &thread0)
635 if (curthread != &thread0) {
H A Dswap_pager.c1344 bp->b_rcred = crhold(thread0.td_ucred);
1345 bp->b_wcred = crhold(thread0.td_ucred);
1549 bp->b_rcred = crhold(thread0.td_ucred);
1550 bp->b_wcred = crhold(thread0.td_ucred);
2597 error = swapoff_one(sp, thread0.td_ucred);
/freebsd-13-stable/sys/kern/
H A Dkern_kthread.c101 error = fork1(&thread0, &fr);
H A Dsubr_turnstile.c393 LIST_INIT(&thread0.td_contested);
394 thread0.td_turnstile = NULL;
435 thread0.td_turnstile = turnstile_alloc();
H A Dkern_synch.c320 if ((cold && curthread == &thread0) || kdb_active ||
H A Dinit_main.c457 td = &thread0;
803 error = fork1(&thread0, &fr);
H A Dsubr_sleepqueue.c235 thread0.td_sleepqueue = sleepq_alloc();
408 if (cold && td == &thread0)

Completed in 372 milliseconds

12