esp_core_dump_replace_sp() function
Set the stack pointer to the address passed as a parameter.
Arguments
new_sp
New stack pointer to set in sp register.
old_ctx
CPU context, related to SP, to fill. It will be given back when restoring SP.
Notes
This function must be inlined.