/freebsd/sys/amd64/include/ |
H A D | stack.h | 16 (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 D | stack.h | 42 (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 D | stack.h | 47 (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 D | stack.h | 57 (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 D | stack.h | 72 (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 D | stack.h | 15 (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 D | vm_glue.c | 549 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 D | machdep.c | 209 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 D | vm_machdep.c | 102 (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 D | vm_machdep.c | 76 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork() 210 td->td_pcb = (struct pcb *)(td->td_kstack +
|
H A D | machdep.c | 293 thread0.td_kstack = kstack; in init_proc0() 295 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
|
/freebsd/sys/ddb/ |
H A D | db_thread.c | 87 (void *)thr->td_kstack); in db_show_threads()
|
H A D | db_ps.c | 361 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 D | vm_machdep.c | 126 pcb = (struct pcb *)((td2->td_kstack + in cpu_fork()
|
H A D | machdep.c | 491 ((thread0.td_kstack + thread0.td_kstack_pages * PAGE_SIZE - in powerpc_init()
|
/freebsd/sys/i386/i386/ |
H A D | vm_machdep.c | 92 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 D | machdep.c | 1395 thread0.td_kstack = proc0kstack; in init386() 1507 common_tss0.tss_esp0 = thread0.td_kstack + thread0.td_kstack_pages * in init386()
|
H A D | trap.c | 205 td, stk, td->td_kstack, td->td_kstack_pages); in trap_check_kstack()
|
/freebsd/sys/kern/ |
H A D | kern_thread.c | 465 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 D | kern_fork.c |
|
H A D | subr_asan.c | 301 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 D | subr_msan.c | 458 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 D | machdep.c | 394 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 D | vm_machdep.c | 88 td->td_md.md_stack_base = td->td_kstack + in set_top_of_stack_td()
|
H A D | machdep.c | 1363 thread0.td_kstack = physfree - kernphys + KERNSTART; in hammer_time() 1366 bzero((void *)thread0.td_kstack, kstack0_sz); in hammer_time()
|