/freebsd/sys/arm/arm/ |
H A D | machdep.c | 186 struct pcb *pcb = thread0.td_pcb; in cpu_startup() 209 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack + in cpu_startup() 367 set_curthread(&thread0); in pcpu0_init() 370 PCPU_SET(curthread, &thread0); in pcpu0_init() 379 proc_linkup0(&proc0, &thread0); in init_proc0() 380 thread0.td_kstack = kstack; in init_proc0() 381 thread0.td_kstack_pages = kstack_pages; in init_proc0() 382 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0() 383 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0() 384 thread0.td_pcb->pcb_flags = 0; in init_proc0() [all …]
|
H A D | undefined.c | 155 td = (curthread == NULL) ? &thread0 : curthread; in gdb_trapper() 238 td = curthread == NULL ? &thread0 : curthread; in undefinedinstruction()
|
H A D | vfp.c | 171 thread0.td_pcb->pcb_vfpstate.fpscr = in vfp_init()
|
/freebsd/sys/riscv/riscv/ |
H A D | machdep.c | 298 proc_linkup0(&proc0, &thread0); in init_proc0() 299 thread0.td_kstack = kstack; in init_proc0() 300 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0() 301 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0() 302 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0() 303 thread0.td_pcb->pcb_fpflags = 0; in init_proc0() 304 thread0.td_frame = &proc0_tf; in init_proc0() 305 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0() 481 TSRAW(&thread0, TS_ENTER, __func__, NULL); in initriscv() 490 PCPU_SET(curthread, &thread0); in initriscv()
|
/freebsd/sys/arm64/arm64/ |
H A D | machdep.c | 400 proc_linkup0(&proc0, &thread0); in init_proc0() 401 thread0.td_kstack = kstack; in init_proc0() 402 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0() 404 thread0.td_md.md_canary = boot_canary; in init_proc0() 406 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0() 407 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0() 408 thread0.td_pcb->pcb_flags = 0; in init_proc0() 409 thread0.td_pcb->pcb_fpflags = 0; in init_proc0() 410 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; in init_proc0() 411 thread0.td_pcb->pcb_vfpcpu = UINT_MAX; in init_proc0() [all …]
|
/freebsd/sys/powerpc/powerpc/ |
H A D | machdep.c | 392 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 D | vm_machdep.c | 114 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork()
|
/freebsd/sys/i386/i386/ |
H A D | machdep.c | 1390 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 D | elan-mmcr.c | 350 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq", in init_AMD_Elan_sc520()
|
/freebsd/sys/amd64/amd64/ |
H A D | machdep.c | 1196 PCPU_SET(curthread, &thread0); in amd64_bsp_pcpu_init1() 1213 PCPU_SET(curpcb, thread0.td_pcb); in amd64_bsp_pcpu_init2() 1294 TSRAW(&thread0, TS_ENTER, __func__, NULL); in hammer_time() 1355 proc_linkup0(&proc0, &thread0); in hammer_time() 1360 thread0.td_kstack = physfree - kernphys + KERNSTART; in hammer_time() 1361 thread0.td_kstack_pages = kstack_pages; in hammer_time() 1362 kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE; in hammer_time() 1363 bzero((void *)thread0.td_kstack, kstack0_sz); in hammer_time() 1371 pmap_thread_init_invl_gen(&thread0); in hammer_time() 1518 set_top_of_stack_td(&thread0); in hammer_time() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/cpu/ |
H A D | cpu-topology.txt | 195 thread0 { 204 thread0 { 215 thread0 { 224 thread0 { 237 thread0 { 245 thread0 { 256 thread0 { 264 thread0 {
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | cred.h | 55 #define kcred (thread0.td_ucred)
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cred.h | 44 #define kcred (thread0.td_ucred)
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-armv8.pl | 946 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 D | chacha-armv4.pl | 741 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 D | chacha-ppc.pl | 601 my @thread0=&VMXROUND($A0,$B0,$C0,$D0,0); 606 foreach (@thread0) { 617 @thread0=&VMXROUND($A0,$B0,$C0,$D0,1); 622 foreach (@thread0) {
|
/freebsd/contrib/diff/src/ |
H A D | diff3.c | 221 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 D | kern_tslog.c | 61 td = &thread0; in tslog()
|
H A D | subr_kdb.c | 511 KASSERT(td == &thread0 && cold, in kdb_backend_permitted() 665 return (&thread0); in kdb_thr_first()
|
H A D | subr_turnstile.c | 392 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 D | init_main.c | 475 td = &thread0; in proc0_init() 823 error = fork1(&thread0, &fr); in create_init()
|
H A D | kern_kthread.c | 97 error = fork1(&thread0, &fr); in kproc_create1()
|
H A D | sched_ule.c | 1542 /* Add thread0's load since it's running. */ in sched_setup() 1544 thread0.td_lock = TDQ_LOCKPTR(tdq); in sched_setup() 1545 tdq_load_add(tdq, &thread0); in sched_setup() 1546 tdq->tdq_curthread = &thread0; in sched_setup() 1547 tdq->tdq_lowpri = thread0.td_priority; in sched_setup() 1774 * Set up the scheduler specific parts of thread0. in schedinit() 1776 ts0 = td_get_sched(&thread0); in schedinit()
|
H A D | kern_synch.c | 321 if ((cold && curthread == &thread0) || kdb_active || in pause_sbt()
|
/freebsd/sys/vm/ |
H A D | swap_pager.c | 1462 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked() 1463 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked() 1659 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_putpages() 1660 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_putpages() 2935 error = swapoff_one(sp, thread0.td_ucred, SWAPOFF_FORCE); in swapoff_all()
|