Function esp_idf_sys::esp_backtrace_get_start
source · pub unsafe extern "C" fn esp_backtrace_get_start(
pc: *mut u32,
sp: *mut u32,
next_pc: *mut u32,
)
Expand description
Get the first frame of the current stack’s backtrace
Given the following function call flow (B -> A -> X -> esp_backtrace_get_start), this function will do the following.
- Flush CPU registers and window frames onto the current stack
- Return PC and SP of function A (i.e. start of the stack’s backtrace)
- Return PC of function B (i.e. next_pc)
@note This function is implemented in assembly
@param[out] pc PC of the first frame in the backtrace @param[out] sp SP of the first frame in the backtrace @param[out] next_pc PC of the first frame’s caller