Home
last modified time | relevance | path

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

12

/freebsd/sys/arm/arm/
H A Dmachdep.c187 struct pcb *pcb = thread0.td_pcb; in cpu_startup()
210 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack + in cpu_startup()
368 set_curthread(&thread0); in pcpu0_init()
371 PCPU_SET(curthread, &thread0); in pcpu0_init()
380 proc_linkup0(&proc0, &thread0); in init_proc0()
381 thread0.td_kstack = kstack; in init_proc0()
382 thread0.td_kstack_pages = kstack_pages; in init_proc0()
383 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
384 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
385 thread0.td_pcb->pcb_flags = 0; in init_proc0()
[all …]
H A Dundefined.c155 td = (curthread == NULL) ? &thread0 : curthread; in gdb_trapper()
238 td = curthread == NULL ? &thread0 : curthread; in undefinedinstruction()
H A Dvfp.c171 thread0.td_pcb->pcb_vfpstate.fpscr = in vfp_init()
/freebsd/sys/arm64/arm64/
H A Dmachdep.c411 proc_linkup0(&proc0, &thread0); in init_proc0()
412 thread0.td_kstack = kstack; in init_proc0()
413 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0()
415 thread0.td_md.md_canary = boot_canary; in init_proc0()
417 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
418 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
419 thread0.td_pcb->pcb_flags = 0; in init_proc0()
420 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
421 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; in init_proc0()
422 thread0.td_pcb->pcb_vfpcpu = UINT_MAX; in init_proc0()
[all …]
/freebsd/sys/riscv/riscv/
H A Dmachdep.c296 proc_linkup0(&proc0, &thread0); in init_proc0()
297 thread0.td_kstack = kstack; in init_proc0()
298 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0()
299 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
300 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
301 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
302 thread0.td_frame = &proc0_tf; in init_proc0()
303 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0()
567 TSRAW(&thread0, TS_ENTER, __func__, NULL); in initriscv()
576 PCPU_SET(curthread, &thread0); in initriscv()
/freebsd/sys/powerpc/powerpc/
H A Dmachdep.c392 proc_linkup0(&proc0, &thread0); in powerpc_init()
393 thread0.td_frame = &frame0; in powerpc_init()
395 __asm __volatile("mr 13,%0" :: "r"(&thread0)); in powerpc_init()
397 __asm __volatile("mr 2,%0" :: "r"(&thread0)); in powerpc_init()
456 pc->pc_curthread = &thread0; in powerpc_init()
457 thread0.td_oncpu = bsp.cr_cpuid; in powerpc_init()
491 thread0.td_pcb = (struct pcb *) in powerpc_init()
492 ((thread0.td_kstack + thread0.td_kstack_pages * PAGE_SIZE - in powerpc_init()
494 bzero((void *)thread0.td_pcb, sizeof(struct pcb)); in powerpc_init()
495 pc->pc_curpcb = thread0.td_pcb; in powerpc_init()
[all …]
H A Dvm_machdep.c114 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork()
/freebsd/sys/i386/i386/
H A Dmachdep.c1390 thread0.td_kstack = proc0kstack; in init386()
1391 thread0.td_kstack_pages = TD0_KSTACK_PAGES; in init386()
1397 proc_linkup0(&proc0, &thread0); in init386()
1465 PCPU_SET(curthread, &thread0); in init386()
1502 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages * in init386()
1572 thread0.td_pcb = get_pcb_td(&thread0); in init386()
1573 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in init386()
1574 bzero(get_pcb_user_save_td(&thread0), cpu_max_ext_state_size); in init386()
1576 xhdr = (struct xstate_hdr *)(get_pcb_user_save_td(&thread0) + in init386()
1580 PCPU_SET(curpcb, thread0.td_pcb); in init386()
[all …]
H A Delan-mmcr.c350 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq", in init_AMD_Elan_sc520()
/freebsd/sys/amd64/amd64/
H A Dmachdep.c1206 PCPU_SET(curthread, &thread0); in amd64_bsp_pcpu_init1()
1223 PCPU_SET(curpcb, thread0.td_pcb); in amd64_bsp_pcpu_init2()
1304 TSRAW(&thread0, TS_ENTER, __func__, NULL); in hammer_time()
1362 proc_linkup0(&proc0, &thread0); in hammer_time()
1367 thread0.td_kstack = physfree - kernphys + KERNSTART; in hammer_time()
1368 thread0.td_kstack_pages = kstack_pages; in hammer_time()
1369 kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE; in hammer_time()
1370 bzero((void *)thread0.td_kstack, kstack0_sz); in hammer_time()
1378 pmap_thread_init_invl_gen(&thread0); in hammer_time()
1525 set_top_of_stack_td(&thread0); in hammer_time()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/cpu/
H A Dcpu-topology.txt195 thread0 {
204 thread0 {
215 thread0 {
224 thread0 {
237 thread0 {
245 thread0 {
256 thread0 {
264 thread0 {
/freebsd/crypto/openssl/crypto/chacha/asm/
H A Dchacha-armv8.pl987 my @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
994 my $diff = ($#thread0+1)*6 - $#thread67 - 1;
997 foreach (@thread0) {
1006 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
1014 foreach (@thread0) {
1101 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,0);
1109 foreach (@thread0) {
1118 @thread0=&NEONROUND($A0,$B0,$C0,$D0,$T0,1);
1126 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/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h56 #define kcred (thread0.td_ucred)
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dcred.h44 #define kcred (thread0.td_ucred)
/freebsd/contrib/diff/src/
H A Ddiff3.c221 struct diff_block *thread0, *thread1, *last_block; in main() local
378 thread0 = process_diff (file[rev_mapping[FILE0]], commonname, &last_block); in main()
379 diff3 = make_3way_diff (thread0, thread1); in main()
520 make_3way_diff (struct diff_block *thread0, struct diff_block *thread1) in make_3way_diff() argument
573 current[0] = thread0; current[1] = thread1; in make_3way_diff()
/freebsd/sys/kern/
H A Dsubr_kdb.c511 KASSERT(td == &thread0 && cold, in kdb_backend_permitted()
665 return (&thread0); in kdb_thr_first()
H A Dkern_tslog.c61 td = &thread0; in tslog()
H A Dsubr_turnstile.c392 LIST_INIT(&thread0.td_contested); in init_turnstiles()
393 thread0.td_turnstile = NULL; in init_turnstiles()
434 thread0.td_turnstile = turnstile_alloc(); in init_turnstile0()
H A Dinit_main.c468 td = &thread0; in proc0_init()
820 error = fork1(&thread0, &fr); in create_init()
H A Dsched_ule.c1658 thread0.td_lock = TDQ_LOCKPTR(tdq); in sched_setup()
1659 tdq_load_add(tdq, &thread0); in sched_setup()
1660 tdq->tdq_curthread = &thread0; in sched_setup()
1661 tdq->tdq_lowpri = thread0.td_priority; in sched_setup()
1902 ts0 = td_get_sched(&thread0); in schedinit()
H A Dkern_kthread.c96 error = fork1(&thread0, &fr); in kproc_create1()
H A Dkern_synch.c321 if ((cold && curthread == &thread0) || kdb_active || in pause_sbt()
/freebsd/sys/vm/
H A Dswap_pager.c1414 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1415 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1610 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_putpages()
1611 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_putpages()
2895 error = swapoff_one(sp, thread0.td_ucred, SWAPOFF_FORCE); in swapoff_all()

12