Home
last modified time | relevance | path

Searched refs:td_kstack (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/sys/amd64/include/
H A Dstack.h16 (used) = (char *)td->td_kstack + \
24 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
25 va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE); in kstack_contains()
/freebsd/sys/powerpc/include/
H A Dstack.h42 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
48 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
49 va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in kstack_contains()
/freebsd/sys/arm64/include/
H A Dstack.h47 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
53 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
54 va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in kstack_contains()
/freebsd/sys/riscv/include/
H A Dstack.h57 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
63 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
64 va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in kstack_contains()
/freebsd/sys/arm/include/
H A Dstack.h72 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
78 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
79 va + len <= td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in kstack_contains()
/freebsd/sys/i386/include/
H A Dstack.h15 (total) = (vm_offset_t)get_pcb_td(td) - td->td_kstack; \
22 return (va >= td->td_kstack && va + len >= va && in kstack_contains()
/freebsd/sys/vm/
H A Dvm_glue.c549 td->td_kstack = ks; in vm_thread_new()
565 ks = td->td_kstack; in vm_thread_dispose()
566 td->td_kstack = 0; in vm_thread_dispose()
754 stack_top = td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in intr_prof_stack_use()
761 if (stack_top <= current || current < td->td_kstack) in intr_prof_stack_use()
/freebsd/sys/arm/arm/
H A Dmachdep.c209 pcb->pcb_regs.sf_sp = (u_int)thread0.td_kstack + in cpu_startup()
380 thread0.td_kstack = kstack; in init_proc0()
382 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
H A Dvm_machdep.c102 (td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1; in cpu_fork()
248 td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * in cpu_thread_alloc()
/freebsd/sys/riscv/riscv/
H A Dvm_machdep.c76 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork()
210 td->td_pcb = (struct pcb *)(td->td_kstack +
H A Dmachdep.c293 thread0.td_kstack = kstack; in init_proc0()
295 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
/freebsd/sys/ddb/
H A Ddb_thread.c87 (void *)thr->td_kstack); in db_show_threads()
H A Ddb_ps.c361 db_printf(" stack: %p-%p\n", (void *)td->td_kstack, in DB_SHOW_COMMAND()
362 (void *)(td->td_kstack + td->td_kstack_pages * PAGE_SIZE - 1)); in DB_SHOW_COMMAND()
/freebsd/sys/powerpc/powerpc/
H A Dvm_machdep.c126 pcb = (struct pcb *)((td2->td_kstack + in cpu_fork()
H A Dmachdep.c491 ((thread0.td_kstack + thread0.td_kstack_pages * PAGE_SIZE - in powerpc_init()
/freebsd/sys/i386/i386/
H A Dvm_machdep.c92 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in get_pcb_user_save_td()
112 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in get_pcb_td()
H A Dmachdep.c1395 thread0.td_kstack = proc0kstack; in init386()
1507 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages * in init386()
H A Dtrap.c205 td, stk, td->td_kstack, td->td_kstack_pages); in trap_check_kstack()
/freebsd/sys/kern/
H A Dkern_thread.c465 td->td_kstack = 0; in thread_init()
790 KASSERT(td->td_kstack == 0, ("thread_alloc got thread with kstack")); in thread_alloc()
809 if (td->td_kstack == 0 || td->td_kstack_pages != pages) { in thread_recycle()
810 if (td->td_kstack != 0) in thread_recycle()
833 if (td->td_kstack != 0) in thread_free_batched()
H A Dkern_fork.c
H A Dsubr_asan.c301 if (td->td_kstack != 0) { in kasan_thread_alloc()
302 kasan_mark((void *)td->td_kstack, ptoa(td->td_kstack_pages), in kasan_thread_alloc()
H A Dsubr_msan.c458 if (td->td_kstack != 0) in kmsan_thread_alloc()
459 kmsan_mark((void *)td->td_kstack, ptoa(td->td_kstack_pages), in kmsan_thread_alloc()
/freebsd/sys/arm64/arm64/
H A Dmachdep.c394 thread0.td_kstack = kstack; in init_proc0()
399 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
/freebsd/sys/amd64/amd64/
H A Dvm_machdep.c88 td->td_md.md_stack_base = td->td_kstack + in set_top_of_stack_td()
H A Dmachdep.c1363 thread0.td_kstack = physfree - kernphys + KERNSTART; in hammer_time()
1366 bzero((void *)thread0.td_kstack, kstack0_sz); in hammer_time()

12