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

Function stack_save_td

freebsd/arm64/arm64/stack_machdep.c:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60int
61stack_save_td(struct stack *st, struct thread *td)
62{
63 struct unwind_state frame;
64
65 THREAD_LOCK_ASSERT(td, MA_OWNED);
66 KASSERT(!TD_IS_SWAPPED(td),
67 ("stack_save_td: thread %p is swapped", td));
68
69 if (TD_IS_RUNNING(td))
70 return (EOPNOTSUPP);
71
72 frame.sp = td->td_pcb->pcb_sp;
73 frame.fp = td->td_pcb->pcb_x[29];
74 frame.pc = td->td_pcb->pcb_lr;
75
76 stack_capture(td, st, &frame);
77 return (0);
78}
79
80void
81stack_save(struct stack *st)

Callers

nothing calls this directly

Calls 1

stack_captureFunction · 0.70

Tested by

no test coverage detected