Home
last modified time | relevance | path

Searched refs:thread0 (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-12.1/sys/powerpc/powerpc/
H A Dmachdep.c349 proc_linkup0(&proc0, &thread0); in powerpc_init()
350 thread0.td_frame = &frame0; in powerpc_init()
352 __asm __volatile("mr 13,%0" :: "r"(&thread0)); in powerpc_init()
354 __asm __volatile("mr 2,%0" :: "r"(&thread0)); in powerpc_init()
399 pc->pc_curthread = &thread0; in powerpc_init()
400 thread0.td_oncpu = bsp.cr_cpuid; in powerpc_init()
432 thread0.td_pcb = (struct pcb *) in powerpc_init()
433 ((thread0.td_kstack + thread0.td_kstack_pages * PAGE_SIZE - in powerpc_init()
435 bzero((void *)thread0.td_pcb, sizeof(struct pcb)); in powerpc_init()
436 pc->pc_curpcb = thread0.td_pcb; in powerpc_init()
[all …]
H A Dvm_machdep.c116 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork()
/freebsd-12.1/sys/mips/mips/
H A Dmachdep.c273 PCPU_SET(curthread, &thread0); in mips_pcpu0_init()
286 proc_linkup0(&proc0, &thread0); in mips_proc0_init()
291 thread0.td_kstack = kstack0; in mips_proc0_init()
292 thread0.td_kstack_pages = KSTACK_PAGES; in mips_proc0_init()
298 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in mips_proc0_init()
299 thread0.td_kstack_pages * PAGE_SIZE) - 1; in mips_proc0_init()
300 thread0.td_frame = &thread0.td_pcb->pcb_regs; in mips_proc0_init()
305 PCPU_SET(curpcb, thread0.td_pcb); in mips_proc0_init()
/freebsd-12.1/sys/arm/arm/
H A Dmachdep.c219 struct pcb *pcb = thread0.td_pcb; in cpu_startup()
759 set_curthread(&thread0); in pcpu0_init()
762 PCPU_SET(curthread, &thread0); in pcpu0_init()
771 proc_linkup0(&proc0, &thread0); in init_proc0()
772 thread0.td_kstack = kstack; in init_proc0()
773 thread0.td_pcb = (struct pcb *) in init_proc0()
775 thread0.td_pcb->pcb_flags = 0; in init_proc0()
776 thread0.td_pcb->pcb_vfpcpu = -1; in init_proc0()
778 thread0.td_frame = &proc0_tf; in init_proc0()
779 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0()
[all …]
H A Dundefined.c149 td = (curthread == NULL) ? &thread0 : curthread; in gdb_trapper()
235 td = curthread == NULL ? &thread0 : curthread; in undefinedinstruction()
H A Dvfp.c145 thread0.td_pcb->pcb_vfpstate.fpscr = in vfp_init()
/freebsd-12.1/sys/arm64/arm64/
H A Dmachdep.c703 proc_linkup0(&proc0, &thread0); in init_proc0()
704 thread0.td_kstack = kstack; in init_proc0()
705 thread0.td_pcb = (struct pcb *)(thread0.td_kstack) - 1; in init_proc0()
706 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
707 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; in init_proc0()
708 thread0.td_pcb->pcb_vfpcpu = UINT_MAX; in init_proc0()
709 thread0.td_frame = &proc0_tf; in init_proc0()
710 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0()
713 thread0.td_proc->p_md.md_l0addr = READ_SPECIALREG(ttbr0_el1); in init_proc0()
1056 PCPU_SET(curthread, &thread0); in initarm()
/freebsd-12.1/sys/riscv/riscv/
H A Dmachdep.c657 proc_linkup0(&proc0, &thread0); in init_proc0()
658 thread0.td_kstack = kstack; in init_proc0()
659 thread0.td_pcb = (struct pcb *)(thread0.td_kstack) - 1; in init_proc0()
660 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
661 thread0.td_frame = &proc0_tf; in init_proc0()
662 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0()
838 TSRAW(&thread0, TS_ENTER, __func__, NULL); in initriscv()
848 PCPU_SET(curthread, &thread0); in initriscv()
/freebsd-12.1/crypto/openssl/crypto/chacha/asm/
H A Dchacha-armv8.pl460 foreach (@thread0) {
466 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
471 foreach (@thread0) {
808 my $diff = ($#thread0+1)*6 - $#thread67 - 1;
811 foreach (@thread0) {
820 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
828 foreach (@thread0) {
915 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
923 foreach (@thread0) {
932 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
[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-12.1/sys/amd64/amd64/
H A Dmachdep.c1609 proc_linkup0(&proc0, &thread0); in hammer_time()
1652 PCPU_SET(curthread, &thread0); in hammer_time()
1789 thread0.td_pcb = get_pcb_td(&thread0); in hammer_time()
1790 thread0.td_critnest = 1; in hammer_time()
1848 thread0.td_pcb = get_pcb_td(&thread0); in hammer_time()
1849 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in hammer_time()
1857 rsp0 = (vm_offset_t)thread0.td_pcb; in hammer_time()
1864 PCPU_SET(curpcb, thread0.td_pcb); in hammer_time()
1879 thread0.td_pcb->pcb_flags = 0; in hammer_time()
1880 thread0.td_frame = &proc0_tf; in hammer_time()
[all …]
/freebsd-12.1/sys/sparc64/sparc64/
H A Dmachdep.c532 proc_linkup0(&proc0, &thread0); in sparc64_init()
535 thread0.td_kstack = kstack0; in sparc64_init()
536 thread0.td_kstack_pages = KSTACK_PAGES; in sparc64_init()
537 thread0.td_pcb = (struct pcb *) in sparc64_init()
538 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; in sparc64_init()
540 thread0.td_frame = &frame0; in sparc64_init()
541 pc->pc_curthread = &thread0; in sparc64_init()
542 pc->pc_curpcb = thread0.td_pcb; in sparc64_init()
H A Dvm_machdep.c247 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork()
284 if ((flags & RFMEM) != 0 && td1 != &thread0) { in cpu_fork()
/freebsd-12.1/sys/i386/i386/
H A Dmachdep.c2319 thread0.td_kstack = proc0kstack; in init386()
2326 proc_linkup0(&proc0, &thread0); in init386()
2390 PCPU_SET(curthread, &thread0); in init386()
2425 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages * in init386()
2489 thread0.td_pcb = get_pcb_td(&thread0); in init386()
2490 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in init386()
2497 PCPU_SET(curpcb, thread0.td_pcb); in init386()
2511 thread0.td_pcb->pcb_flags = 0; in init386()
2517 thread0.td_pcb->pcb_ext = 0; in init386()
2518 thread0.td_frame = &proc0_tf; in init386()
[all …]
H A Delan-mmcr.c347 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq", in init_AMD_Elan_sc520()
/freebsd-12.1/sys/cddl/compat/opensolaris/sys/
H A Dcred.h46 #define kcred (thread0.td_ucred)
/freebsd-12.1/contrib/diff/src/
H A Ddiff3.c221 struct diff_block *thread0, *thread1, *last_block; in main() local
379 thread0 = process_diff (file[rev_mapping[FILE0]], commonname, &last_block); in main()
380 diff3 = make_3way_diff (thread0, thread1); in main()
521 make_3way_diff (struct diff_block *thread0, struct diff_block *thread1) in make_3way_diff() argument
574 current[0] = thread0; current[1] = thread1; in make_3way_diff()
/freebsd-12.1/sys/vm/
H A Dvm_swapout.c641 if (curthread != &thread0) in faultin()
653 if (curthread != &thread0) { in faultin()
H A Dswap_pager.c1219 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_getpages()
1220 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_getpages()
1419 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_putpages()
1420 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_putpages()
2480 error = swapoff_one(sp, thread0.td_ucred); in swapoff_all()
/freebsd-12.1/sys/kern/
H A Dsubr_turnstile.c371 LIST_INIT(&thread0.td_contested); in init_turnstiles()
372 thread0.td_turnstile = NULL; in init_turnstiles()
412 thread0.td_turnstile = turnstile_alloc(); in init_turnstile0()
H A Dinit_main.c454 td = &thread0; in proc0_init()
842 error = fork1(&thread0, &fr); in create_init()
H A Dkern_kthread.c99 error = fork1(&thread0, &fr); in kproc_create()
H A Dkern_synch.c316 if ((cold && curthread == &thread0) || kdb_active || in pause_sbt()
H A Dsched_ule.c1434 thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF()); in sched_setup()
1435 tdq_load_add(tdq, &thread0); in sched_setup()
1436 tdq->tdq_lowpri = thread0.td_priority; in sched_setup()
1667 ts0 = td_get_sched(&thread0); in schedinit()

12