Home
last modified time | relevance | path

Searched refs:stack_top (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-12.1/lib/libc/i386/gen/
H A Dmakecontext.c71 char *stack_top; in __makecontext() local
114 stack_top = (char *)(ucp->uc_stack.ss_sp + in __makecontext()
123 stack_top = stack_top - (sizeof(intptr_t) * (1 + argc)); in __makecontext()
124 stack_top = (char *)((unsigned)stack_top & ~15); in __makecontext()
125 stack_top = stack_top - (2 * sizeof(intptr_t)); in __makecontext()
126 argp = (intptr_t *)stack_top; in __makecontext()
162 ucp->uc_mcontext.mc_esp = (int)stack_top + sizeof(caddr_t); in __makecontext()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.cc51 uptr stack_top, in GetCanonicFrame() argument
54 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
56 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
59 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
71 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
77 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
78 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in FastUnwindStack()
83 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
91 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) || in FastUnwindStack()
109 frame = GetCanonicFrame((uptr)frame[0], stack_top, bottom); in FastUnwindStack()
H A Dsanitizer_stacktrace_sparc.cc25 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
31 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
39 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
H A Dsanitizer_stacktrace.h100 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top,
109 void FastUnwindStack(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom,
122 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
123 return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr); in IsValidFrame()
H A Dsanitizer_rtems.cc76 uptr *stack_top, uptr *stack_bottom) { in GetThreadStackTopAndBottom() argument
86 *stack_top = *stack_bottom + size; in GetThreadStackTopAndBottom()
91 uptr stack_top, stack_bottom; in GetThreadStackAndTls() local
92 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
94 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
H A Dsanitizer_linux_libcdep.cc92 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom() argument
94 CHECK(stack_top); in GetThreadStackTopAndBottom()
104 *stack_top = *stack_bottom = 0; in GetThreadStackTopAndBottom()
124 *stack_top = segment.end; in GetThreadStackTopAndBottom()
148 *stack_top = (uptr)stackaddr + stacksize; in GetThreadStackTopAndBottom()
514 uptr stack_top, stack_bottom; in GetThreadStackAndTls()
515 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
517 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
H A Dsanitizer_stacktrace_libcdep.cc59 uptr stack_top, uptr stack_bottom, in Unwind() argument
82 FastUnwindStack(pc, bp, stack_top, stack_bottom, max_depth); in Unwind()
H A Dsanitizer_mac.cc300 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom() argument
302 CHECK(stack_top); in GetThreadStackTopAndBottom()
320 *stack_top = (uptr)stackaddr; in GetThreadStackTopAndBottom()
321 *stack_bottom = *stack_top - stacksize; in GetThreadStackTopAndBottom()
477 uptr stack_top, stack_bottom; in GetThreadStackAndTls() local
478 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
480 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
H A Dsanitizer_win.cc97 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom() argument
99 CHECK(stack_top); in GetThreadStackTopAndBottom()
106 *stack_top = (uptr)mbi.BaseAddress + mbi.RegionSize; in GetThreadStackTopAndBottom()
807 uptr stack_top, stack_bottom; in GetThreadStackAndTls()
808 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
810 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
H A Dsanitizer_unwind_linux_libcdep.cc35 uptr stack_top; member
H A Dsanitizer_fuchsia.cc77 void GetThreadStackTopAndBottom(bool, uptr *stack_top, uptr *stack_bottom) { in GetThreadStackTopAndBottom() argument
86 *stack_top = *stack_bottom + size; in GetThreadStackTopAndBottom()
/freebsd-12.1/contrib/openmp/runtime/src/
H A Dkmp_error.cpp143 p->stack_top = 0; in __kmp_allocate_cons_stack()
164 int tos = p->stack_top; in dump_cons_stack()
200 tos = ++p->stack_top; in __kmp_push_parallel()
238 tos = ++p->stack_top; in __kmp_push_workshare()
359 tos = ++p->stack_top;
373 tos = p->stack_top;
386 p->stack_top = tos - 1;
395 tos = p->stack_top;
414 p->stack_top = tos - 1;
422 tos = p->stack_top;
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/lsan/
H A Dlsan.h51 uptr stack_top = 0, stack_bottom = 0; in GetStackTrace() local
54 stack_top = t->stack_end(); in GetStackTrace()
57 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
58 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast); in GetStackTrace()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_stack.h43 uptr stack_top = t->stack_top(); in GetStackTrace()
46 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
47 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, in GetStackTrace()
H A Dasan_thread.h76 uptr stack_top();
H A Dasan_thread.cc179 uptr AsanThread::stack_top() { in stack_top() function in __asan::AsanThread
474 *stack_end = t->stack_top(); in GetThreadRangesLocked()
/freebsd-12.1/sys/vm/
H A Dvm_glue.c504 vm_offset_t stack_top; in intr_prof_stack_use() local
516 stack_top = td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in intr_prof_stack_use()
517 current = (vm_offset_t)(uintptr_t)&stack_top; in intr_prof_stack_use()
523 if (stack_top <= current || current < td->td_kstack) in intr_prof_stack_use()
526 used = stack_top - current; in intr_prof_stack_use()
/freebsd-12.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_thread.h30 uptr stack_top() { return stack_top_; } in stack_top() function
32 uptr stack_size() { return stack_top() - stack_bottom(); } in stack_size()
H A Dhwasan_thread.cc89 unique_id_, this, stack_bottom(), stack_top(), in Print()
90 stack_top() - stack_bottom(), in Print()
/freebsd-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_thread.h31 uptr stack_top() { return stack_top_; } in stack_top() function
/freebsd-12.1/sys/contrib/octeon-sdk/
H A Dcvmx-sysinfo.h81 uint64_t stack_top; /**< stack top address (virtual) */ member
H A Dcvmx-app-init.h83 uint64_t stack_top; member
139 uint64_t stack_top;
H A Dcvmx-app-init.c122 sys_info_ptr->stack_top = cvmx_bootinfo_ptr->stack_top; in process_boot_desc_ver_6()
/freebsd-12.1/sys/i386/i386/
H A Dbios.c328 char *p, *stack, *stack_top; in bios16() local
404 stack_top = stack; in bios16()
453 i = bios16_call(&args->r, stack_top); in bios16()
/freebsd-12.1/contrib/googletest/googletest/src/
H A Dgtest-death-test.cc1302 void* const stack_top = in ExecDeathTestSpawnChild() local
1306 reinterpret_cast<intptr_t>(stack_top) % kMaxStackAlignment == 0); in ExecDeathTestSpawnChild()
1308 child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args); in ExecDeathTestSpawnChild()

12