Home
last modified time | relevance | path

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

12

/src/sys/arm/arm/
H A Dmachdep.c185 struct pcb *pcb = thread0.td_pcb; in cpu_startup()
208 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack + in cpu_startup()
366 set_curthread(&thread0); in pcpu0_init()
369 PCPU_SET(curthread, &thread0); in pcpu0_init()
378 proc_linkup0(&proc0, &thread0); in init_proc0()
379 thread0.td_kstack = kstack; in init_proc0()
380 thread0.td_kstack_pages = kstack_pages; in init_proc0()
381 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
382 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
383 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()
/src/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()
/src/sys/arm64/arm64/
H A Dmachdep.c438 proc_linkup0(&proc0, &thread0); in init_proc0()
439 thread0.td_kstack = kstack; in init_proc0()
440 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0()
442 thread0.td_md.md_canary = boot_canary; in init_proc0()
444 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
445 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
446 thread0.td_pcb->pcb_flags = 0; in init_proc0()
447 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
448 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; in init_proc0()
449 thread0.td_pcb->pcb_vfpcpu = UINT_MAX; in init_proc0()
[all …]
/src/sys/powerpc/powerpc/
H A Dmachdep.c393 proc_linkup0(&proc0, &thread0); in powerpc_init()
394 thread0.td_frame = &frame0; in powerpc_init()
396 __asm __volatile("mr 13,%0" :: "r"(&thread0)); in powerpc_init()
398 __asm __volatile("mr 2,%0" :: "r"(&thread0)); in powerpc_init()
457 pc->pc_curthread = &thread0; in powerpc_init()
458 thread0.td_oncpu = bsp.cr_cpuid; in powerpc_init()
493 thread0.td_pcb = (struct pcb *)__align_down(thread0.td_kstack + in powerpc_init()
494 thread0.td_kstack_pages * PAGE_SIZE - sizeof(struct pcb), 16); in powerpc_init()
495 bzero((void *)thread0.td_pcb, sizeof(struct pcb)); in powerpc_init()
496 pc->pc_curpcb = thread0.td_pcb; in powerpc_init()
[all …]
H A Dvm_machdep.c114 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork()
/src/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()
1573 thread0.td_pcb = get_pcb_td(&thread0); in init386()
1574 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in init386()
1575 bzero(get_pcb_user_save_td(&thread0), cpu_max_ext_state_size); in init386()
1577 xhdr = (struct xstate_hdr *)(get_pcb_user_save_td(&thread0) + in init386()
1581 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()
/src/sys/amd64/amd64/
H A Dmachdep.c1205 PCPU_SET(curthread, &thread0); in amd64_bsp_pcpu_init1()
1222 PCPU_SET(curpcb, thread0.td_pcb); in amd64_bsp_pcpu_init2()
1303 TSRAW(&thread0, TS_ENTER, __func__, NULL); in hammer_time()
1363 proc_linkup0(&proc0, &thread0); in hammer_time()
1368 thread0.td_kstack = physfree - kernphys + KERNSTART; in hammer_time()
1369 thread0.td_kstack_pages = kstack_pages; in hammer_time()
1370 kstack0_sz = thread0.td_kstack_pages * PAGE_SIZE; in hammer_time()
1371 bzero((void *)thread0.td_kstack, kstack0_sz); in hammer_time()
1379 pmap_thread_init_invl_gen(&thread0); in hammer_time()
1525 set_top_of_stack_td(&thread0); in hammer_time()
[all …]
/src/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 {
/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h56 #define kcred (thread0.td_ucred)
/src/sys/cddl/compat/opensolaris/sys/
H A Dcred.h44 #define kcred (thread0.td_ucred)
/src/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) {
/src/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.c478 td = &thread0; in proc0_init()
830 error = fork1(&thread0, &fr); in create_init()
H A Dkern_kthread.c96 error = fork1(&thread0, &fr); in kproc_create1()
H A Dsched_ule.c1620 thread0.td_lock = TDQ_LOCKPTR(tdq); in sched_ule_setup()
1621 tdq_load_add(tdq, &thread0); in sched_ule_setup()
1622 tdq->tdq_curthread = &thread0; in sched_ule_setup()
1623 tdq->tdq_lowpri = thread0.td_priority; in sched_ule_setup()
1864 ts0 = td_get_sched(&thread0); in sched_ule_init()
H A Dkern_synch.c317 if ((cold && curthread == &thread0) || kdb_active || in pause_sbt()
H A Dsubr_sleepqueue.c233 thread0.td_sleepqueue = sleepq_alloc(); in init_sleepqueues()
407 if (cold && td == &thread0) in sleepq_set_timeout_sbt()
/src/sys/vm/
H A Dswap_pager.c1432 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1433 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1635 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_putpages()
1636 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_putpages()
2923 error = swapoff_one(sp, thread0.td_ucred, SWAPOFF_FORCE); in swapoff_all()

12