MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_backtrace

Function rt_backtrace

libcpu/arm/cortex-a/backtrace.c:533–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533rt_err_t rt_backtrace(void)
534{
535 struct rt_hw_exp_stack regs;
536
537 asm volatile ("mov %0, fp":"=r"(regs.fp));
538 asm volatile ("mov %0, sp":"=r"(regs.sp));
539 asm volatile ("mov %0, lr":"=r"(regs.lr));
540 asm volatile ("mov %0, pc":"=r"(regs.pc));
541 rt_unwind(&regs, 8);
542 return RT_EOK;
543}

Callers 1

rt_hw_mmu_mapFunction · 0.50

Calls 1

rt_unwindFunction · 0.70

Tested by

no test coverage detected