MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stack_save

Function stack_save

freebsd/arm/arm/stack_machdep.c:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void
53stack_save(struct stack *st)
54{
55 struct unwind_state state;
56 uint32_t sp;
57
58 /* Read the stack pointer */
59 __asm __volatile("mov %0, sp" : "=&r" (sp));
60
61 state.registers[FP] = (uint32_t)__builtin_frame_address(0);
62 state.registers[SP] = sp;
63 state.registers[LR] = (uint32_t)__builtin_return_address(0);
64 state.registers[PC] = (uint32_t)stack_save;
65
66 stack_capture(st, &state);
67}
68
69int
70stack_save_td(struct stack *st, struct thread *td)

Callers 8

zfs_kmem_allocFunction · 0.50
epoch_trace_reportFunction · 0.50
kdb_backtraceFunction · 0.50
witness_checkorderFunction · 0.50
witness_lock_order_addFunction · 0.50
witness_debuggerFunction · 0.50
redzone_setupFunction · 0.50
redzone_checkFunction · 0.50

Calls 1

stack_captureFunction · 0.70

Tested by

no test coverage detected