Home
last modified time | relevance | path

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

12

/f-stack/freebsd/mips/mips/
H A Dmachdep.c274 PCPU_SET(curthread, &thread0); in mips_pcpu0_init()
287 proc_linkup0(&proc0, &thread0); in mips_proc0_init()
292 thread0.td_kstack = kstack0; in mips_proc0_init()
293 thread0.td_kstack_pages = KSTACK_PAGES; in mips_proc0_init()
299 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in mips_proc0_init()
300 thread0.td_kstack_pages * PAGE_SIZE) - 1; in mips_proc0_init()
301 thread0.td_frame = &thread0.td_pcb->pcb_regs; in mips_proc0_init()
306 PCPU_SET(curpcb, thread0.td_pcb); in mips_proc0_init()
/f-stack/freebsd/arm/arm/
H A Dmachdep.c186 struct pcb *pcb = thread0.td_pcb; in cpu_startup()
687 set_curthread(&thread0); in pcpu0_init()
690 PCPU_SET(curthread, &thread0); in pcpu0_init()
699 proc_linkup0(&proc0, &thread0); in init_proc0()
700 thread0.td_kstack = kstack; in init_proc0()
701 thread0.td_kstack_pages = kstack_pages; in init_proc0()
702 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
704 thread0.td_pcb->pcb_flags = 0; in init_proc0()
705 thread0.td_pcb->pcb_vfpcpu = -1; in init_proc0()
707 thread0.td_frame = &proc0_tf; in init_proc0()
[all …]
H A Dundefined.c146 td = (curthread == NULL) ? &thread0 : curthread; in gdb_trapper()
231 td = curthread == NULL ? &thread0 : curthread; in undefinedinstruction()
H A Dvfp.c144 thread0.td_pcb->pcb_vfpstate.fpscr = in vfp_init()
/f-stack/freebsd/arm64/arm64/
H A Dmachdep.c903 proc_linkup0(&proc0, &thread0); in init_proc0()
904 thread0.td_kstack = kstack; in init_proc0()
905 thread0.td_kstack_pages = KSTACK_PAGES; in init_proc0()
906 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
907 thread0.td_kstack_pages * PAGE_SIZE) - 1; in init_proc0()
908 thread0.td_pcb->pcb_fpflags = 0; in init_proc0()
909 thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; in init_proc0()
910 thread0.td_pcb->pcb_vfpcpu = UINT_MAX; in init_proc0()
911 thread0.td_frame = &proc0_tf; in init_proc0()
912 pcpup->pc_curpcb = thread0.td_pcb; in init_proc0()
[all …]
H A Dvfp.c244 thread0.td_pcb->pcb_fpusaved->vfp_fpcr = initial_fpcr; in vfp_init()
/f-stack/freebsd/amd64/amd64/
H A Dmachdep.c1560 PCPU_SET(curthread, &thread0); in amd64_bsp_pcpu_init1()
1577 PCPU_SET(curpcb, thread0.td_pcb); in amd64_bsp_pcpu_init2()
1665 proc_linkup0(&proc0, &thread0); in hammer_time()
1827 set_top_of_stack_td(&thread0); in hammer_time()
1828 thread0.td_pcb = get_pcb_td(&thread0); in hammer_time()
1829 thread0.td_critnest = 1; in hammer_time()
1895 set_top_of_stack_td(&thread0); in hammer_time()
1896 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in hammer_time()
1923 thread0.td_pcb->pcb_flags = 0; in hammer_time()
1924 thread0.td_frame = &proc0_tf; in hammer_time()
[all …]
/f-stack/freebsd/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 {
/f-stack/freebsd/i386/i386/
H A Dmachdep.c2310 thread0.td_kstack = proc0kstack; in init386()
2317 proc_linkup0(&proc0, &thread0); in init386()
2381 PCPU_SET(curthread, &thread0); in init386()
2417 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages * in init386()
2481 thread0.td_pcb = get_pcb_td(&thread0); in init386()
2482 thread0.td_pcb->pcb_save = get_pcb_user_save_td(&thread0); in init386()
2489 PCPU_SET(curpcb, thread0.td_pcb); in init386()
2503 thread0.td_pcb->pcb_flags = 0; in init386()
2505 thread0.td_pcb->pcb_ext = 0; in init386()
2506 thread0.td_frame = &proc0_tf; in init386()
[all …]
H A Delan-mmcr.c352 i = kernel_sysctlbyname(&thread0, "machdep.i8254_freq", in init_AMD_Elan_sc520()
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h51 #define kcred (thread0.td_ucred)
/f-stack/lib/
H A Dff_compat.c91 pcurthread = &thread0; in ff_init_thread0()
H A Dff_init_main.c356 td = &thread0; in proc0_init()
/f-stack/freebsd/vm/
H A Dvm_swapout.c623 if (curthread != &thread0) in faultin()
635 if (curthread != &thread0) { in faultin()
H A Dswap_pager.c1327 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1328 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_getpages_locked()
1532 bp->b_rcred = crhold(thread0.td_ucred); in swap_pager_putpages()
1533 bp->b_wcred = crhold(thread0.td_ucred); in swap_pager_putpages()
2556 error = swapoff_one(sp, thread0.td_ucred); in swapoff_all()
/f-stack/freebsd/kern/
H A Dsubr_turnstile.c393 LIST_INIT(&thread0.td_contested); in init_turnstiles()
394 thread0.td_turnstile = NULL; in init_turnstiles()
435 thread0.td_turnstile = turnstile_alloc(); in init_turnstile0()
H A Dinit_main.c457 td = &thread0; in proc0_init()
802 error = fork1(&thread0, &fr); in create_init()
H A Dkern_kthread.c100 error = fork1(&thread0, &fr); in kproc_create()
H A Dkern_synch.c320 if ((cold && curthread == &thread0) || kdb_active || in pause_sbt()
H A Dsubr_sleepqueue.c235 thread0.td_sleepqueue = sleepq_alloc(); in init_sleepqueues()
408 if (cold && td == &thread0) in sleepq_set_timeout_sbt()
H A Dsched_ule.c1463 thread0.td_lock = TDQ_LOCKPTR(tdq); in sched_setup()
1464 tdq_load_add(tdq, &thread0); in sched_setup()
1465 tdq->tdq_lowpri = thread0.td_priority; in sched_setup()
1695 ts0 = td_get_sched(&thread0); in schedinit()
H A Dsched_4bsd.c676 thread0.td_lock = &sched_lock; in schedinit()
677 td_get_sched(&thread0)->ts_slice = sched_slice; in schedinit()
H A Dsubr_epoch.c290 SLIST_INIT(&thread0.td_epochs); in epoch_init()
/f-stack/doc/
H A DF-Stack_Development_Guide.md59 pcpu curthread proc0 thread0, initialization
/f-stack/freebsd/netinet/
H A Dtcp_syncache.c958 thread0.td_ucred, m, false)) != 0) { in syncache_socket()
998 thread0.td_ucred, m, false)) != 0) { in syncache_socket()

12