| /freebsd-13.1/sys/vm/ |
| H A D | vm_glue.c | 387 td->td_kstack = ks; in vm_thread_new() 403 ks = td->td_kstack; in vm_thread_dispose() 404 td->td_kstack = 0; in vm_thread_dispose() 512 stack_top = td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in intr_prof_stack_use() 519 if (stack_top <= current || current < td->td_kstack) in intr_prof_stack_use()
|
| H A D | vm_swapout.c | 539 kaddr = td->td_kstack; in vm_thread_swapout() 565 kaddr = td->td_kstack; in vm_thread_swapin()
|
| /freebsd-13.1/sys/dev/hwpmc/ |
| H A D | hwpmc_arm64_md.c | 79 stackstart = (uintptr_t) td->td_kstack; in pmc_save_kernel_callchain() 80 stackend = (uintptr_t) td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in pmc_save_kernel_callchain()
|
| H A D | hwpmc_arm.c | 95 stackstart = (uintptr_t) td->td_kstack; in pmc_save_kernel_callchain() 96 stackend = (uintptr_t) td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in pmc_save_kernel_callchain()
|
| H A D | hwpmc_x86.c | 181 stackstart = (uintptr_t) td->td_kstack; in pmc_save_kernel_callchain() 182 stackend = (uintptr_t) td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in pmc_save_kernel_callchain()
|
| /freebsd-13.1/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 | 107 (td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1; in cpu_fork() 258 td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * in cpu_thread_alloc()
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | vm_machdep.c | 78 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork() 221 td->td_pcb = (struct pcb *)(td->td_kstack + in cpu_thread_alloc()
|
| H A D | machdep.c | 296 thread0.td_kstack = kstack; in init_proc0() 298 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | vm_machdep.c | 250 pte = pmap_pte(kernel_pmap, td->td_kstack + i * PAGE_SIZE); in cpu_thread_swapin() 266 KASSERT((td->td_kstack & (1 << PAGE_SHIFT)) == 0, ("kernel stack must be aligned.")); in cpu_thread_alloc() 267 td->td_pcb = (struct pcb *)(td->td_kstack + in cpu_thread_alloc() 272 pte = pmap_pte(kernel_pmap, td->td_kstack + i * PAGE_SIZE); in cpu_thread_alloc()
|
| H A D | machdep.c | 292 thread0.td_kstack = kstack0; in mips_proc0_init() 299 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in mips_proc0_init()
|
| /freebsd-13.1/sys/riscv/include/ |
| H A D | proc.h | 62 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
|
| /freebsd-13.1/sys/arm64/include/ |
| H A D | proc.h | 64 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
|
| /freebsd-13.1/sys/powerpc/include/ |
| H A D | proc.h | 77 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
|
| /freebsd-13.1/sys/arm/include/ |
| H A D | proc.h | 81 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
|
| /freebsd-13.1/sys/i386/include/ |
| H A D | proc.h | 78 (total) = (vm_offset_t)get_pcb_td(td) - td->td_kstack; \
|
| /freebsd-13.1/sys/mips/include/ |
| H A D | proc.h | 105 (used) = td->td_kstack + (total) - (vm_offset_t)&td; \
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | vm_machdep.c | 90 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork() 258 td->td_pcb = (struct pcb *)(td->td_kstack + in cpu_thread_alloc()
|
| H A D | machdep.c | 358 thread0.td_kstack = kstack; in init_proc0() 363 thread0.td_pcb = (struct pcb *)(thread0.td_kstack + in init_proc0()
|
| /freebsd-13.1/sys/amd64/include/ |
| H A D | proc.h | 106 (used) = (char *)td->td_kstack + \
|
| /freebsd-13.1/sys/ddb/ |
| H A D | db_thread.c | 90 (void *)thr->td_kstack); in db_show_threads()
|
| H A D | db_ps.c | 365 db_printf(" stack: %p-%p\n", (void *)td->td_kstack, in DB_SHOW_COMMAND() 366 (void *)(td->td_kstack + td->td_kstack_pages * PAGE_SIZE - 1)); in DB_SHOW_COMMAND()
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | vm_machdep.c | 124 pcb = (struct pcb *)((td2->td_kstack + in cpu_fork()
|
| /freebsd-13.1/sys/i386/i386/ |
| H A D | vm_machdep.c | 96 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in get_pcb_user_save_td() 116 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE - in get_pcb_td()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_thread.c | 429 td->td_kstack = 0; in thread_init() 756 KASSERT(td->td_kstack == 0, ("thread_alloc got thread with kstack")); in thread_alloc() 774 KASSERT(td->td_kstack == 0, in thread_alloc_stack() 794 if (td->td_kstack != 0) in thread_free_batched()
|