| 78 | } |
| 79 | |
| 80 | void |
| 81 | stack_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 | } |
nothing calls this directly
no test coverage detected