feat(liteos_m): support backtrace for riscv

Support backtrace for riscv when the compilation option(-fno-omit-frame-pointer) is not turned on.

fix #I3RVXY

Change-Id: Ie7d8a223167e5c540367bc96db646b821dae9fd0
This commit is contained in:
YOUR_NAME
2021-05-25 11:10:28 +08:00
parent e52008ba6e
commit ca1792aa4b
3 changed files with 171 additions and 48 deletions

View File

@@ -609,8 +609,9 @@ extern UINT8 *m_aucSysMem0;
* @ingroup los_config
* Configuration backtrace type
* 0: Close stack analysis module.
* 1: Call stack analysis for cortex-m series.
* 2: Call stack analysis for risc-v.
* 1: Call stack analysis for cortex-m series by scanning the stack.
* 2: Call stack analysis for risc-v by using frame pointer.
* 3: Call stack analysis for risc-v by scanning the stack.
* others: Not currently supported.
*/
#ifndef LOSCFG_BACKTRACE_TYPE