Lines Matching refs:uintptr_t

15 uintptr_t z_riscv_get_sp_before_exc(const struct arch_esf *esf);
22 uintptr_t fp;
23 uintptr_t ra;
26 typedef bool (*stack_verify_fn)(uintptr_t, const struct k_thread *const, const struct arch_esf *);
28 static inline bool in_irq_stack_bound(uintptr_t addr, uint8_t cpu_id) in in_irq_stack_bound()
30 uintptr_t start, end; in in_irq_stack_bound()
32 start = (uintptr_t)K_KERNEL_STACK_BUFFER(z_interrupt_stacks[cpu_id]); in in_irq_stack_bound()
38 static inline bool in_kernel_thread_stack_bound(uintptr_t addr, const struct k_thread *const thread) in in_kernel_thread_stack_bound()
41 uintptr_t start, end; in in_kernel_thread_stack_bound()
56 static inline bool in_user_thread_stack_bound(uintptr_t addr, const struct k_thread *const thread) in in_user_thread_stack_bound()
58 uintptr_t start, end; in in_user_thread_stack_bound()
73 static bool in_stack_bound(uintptr_t addr, const struct k_thread *const thread, in in_stack_bound()
78 if (!IS_ALIGNED(addr, sizeof(uintptr_t))) { in in_stack_bound()
91 static inline bool in_text_region(uintptr_t addr) in in_text_region()
93 extern uintptr_t __text_region_start, __text_region_end; in in_text_region()
95 return (addr >= (uintptr_t)&__text_region_start) && (addr < (uintptr_t)&__text_region_end); in in_text_region()
103 uintptr_t fp, last_fp = 0; in walk_stackframe()
104 uintptr_t ra; in walk_stackframe()
113 fp = (uintptr_t)__builtin_frame_address(0); in walk_stackframe()
114 ra = (uintptr_t)walk_stackframe; in walk_stackframe()
171 register uintptr_t current_stack_pointer __asm__("sp");
176 uintptr_t sp; in walk_stackframe()
177 uintptr_t ra; in walk_stackframe()
178 uintptr_t *ksp, last_ksp = 0; in walk_stackframe()
187 ra = (uintptr_t)walk_stackframe; in walk_stackframe()
194 ksp = (uintptr_t *)sp; in walk_stackframe()
195 for (int i = 0; (i < MAX_STACK_FRAMES) && vrfy((uintptr_t)ksp, thread, esf) && in walk_stackframe()
196 ((uintptr_t)ksp > last_ksp);) { in walk_stackframe()
207 last_ksp = (uintptr_t)ksp; in walk_stackframe()
229 static bool in_fatal_stack_bound(uintptr_t addr, const struct k_thread *const thread, in in_fatal_stack_bound()
232 if (!IS_ALIGNED(addr, sizeof(uintptr_t))) { in in_fatal_stack_bound()