Add exc dump.

Change-Id: Ie3b925f89a01ade5f4a4fae6ff2eff94d97176da
This commit is contained in:
YOUR_NAME
2021-03-20 15:29:46 +08:00
parent d8fcb97fc6
commit 34c82ccd64
13 changed files with 1000 additions and 355 deletions

View File

@@ -60,10 +60,10 @@ VOID OsBackTraceHookSet(BACK_TRACE_HOOK hook)
}
}
VOID OsBackTraceHookCall(UINTPTR *LR, UINT32 LRSize, UINT32 jumpCount)
VOID OsBackTraceHookCall(UINTPTR *LR, UINT32 LRSize, UINT32 jumpCount, UINTPTR SP)
{
if (g_backTraceHook != NULL) {
g_backTraceHook(LR, LRSize, jumpCount);
g_backTraceHook(LR, LRSize, jumpCount, SP);
} else {
PRINT_ERR("Record LR failed, because of g_backTraceHook is not registered, "
"should call LOS_BackTraceInit firstly\n");