| 72 | } |
| 73 | |
| 74 | void stack_trace(void) |
| 75 | { |
| 76 | stack_trace_context_t ctx = { |
| 77 | .fp = frame_pointer_get(), |
| 78 | .pc = program_counter_get(), |
| 79 | .istate = NULL |
| 80 | }; |
| 81 | |
| 82 | stack_trace_ctx(&kst_ops, &ctx); |
| 83 | |
| 84 | /* |
| 85 | * Prevent the tail call optimization of the previous call by |
| 86 | * making it a non-tail call. |
| 87 | */ |
| 88 | (void) frame_pointer_get(); |
| 89 | } |
| 90 | |
| 91 | void stack_trace_istate(istate_t *istate) |
| 92 | { |
no test coverage detected