assert: Distinguish between assert and exception

CURRENT_REGS may change during assert handling, so pass
in the 'regs' parameter at the entry point of _assert.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21
2023-04-10 21:19:12 +08:00
committed by Xiang Xiao
parent 5a1efdecfd
commit 884be2bdb9
35 changed files with 57 additions and 50 deletions
+1 -1
View File
@@ -33,6 +33,6 @@
void __assert(FAR const char *filename, int linenum, FAR const char *msg)
{
_assert(filename, linenum, msg);
_assert(filename, linenum, msg, NULL);
abort();
}