4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 05:53:31 +08:00
Bernard Xiong f295d3df78
[libcpu.aarch64] add rt_backtrace function. (#6982)
* [libcpu.aarch64] add rt_backtrace function.
2023-02-27 10:04:10 +08:00

24 lines
450 B
C

/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-06-02 Jesven the first version
*/
#ifndef __BACKTRACE_H__
#define __BACKTRACE_H__
struct bt_frame
{
unsigned long fp;
unsigned long pc;
};
void backtrace(unsigned long pc, unsigned long lr, unsigned long fp);
int rt_backtrace(void);
#endif /*__BACKTRACE_H__*/