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

Function stack_save

freebsd/arm64/arm64/stack_machdep.c:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void
81stack_save(struct stack *st)
82{
83 struct unwind_state frame;
84 uintptr_t sp;
85
86 __asm __volatile("mov %0, sp" : "=&r" (sp));
87
88 frame.sp = sp;
89 frame.fp = (uintptr_t)__builtin_frame_address(0);
90 frame.pc = (uintptr_t)stack_save;
91
92 stack_capture(curthread, st, &frame);
93}

Callers

nothing calls this directly

Calls 1

stack_captureFunction · 0.70

Tested by

no test coverage detected