assert: add regs parameter to board_crashdump function

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-06-08 16:39:09 +08:00 committed by Xiang Xiao
parent acddda812c
commit 6c38c44af2
7 changed files with 7 additions and 7 deletions

View File

@ -100,7 +100,7 @@ static void copy_reverse(stack_word_t *dest, stack_word_t *src, int size)
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
const char *filename, int lineno,
const char *msg)
const char *msg, FAR void *regs)
{
fullcontext_t *pdump;

View File

@ -381,7 +381,7 @@ int stm32_bbsram_int(void)
#if defined(CONFIG_STM32_SAVE_CRASHDUMP)
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
const char *filename, int lineno,
const char *msg)
const char *msg, FAR void *regs)
{
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
int rv;

View File

@ -381,7 +381,7 @@ int stm32_bbsram_int(void)
#if defined(CONFIG_STM32F7_SAVE_CRASHDUMP)
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
const char *filename, int lineno,
const char *msg)
const char *msg, FAR void *regs)
{
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
int rv;

View File

@ -334,7 +334,7 @@ int rx65n_sbram_int(void)
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
const char *filename, int lineno,
const char *msg)
const char *msg, FAR void *regs)
{
struct fullcontext *pdump;
pdump = (struct fullcontext *)&g_sdata;

View File

@ -332,7 +332,7 @@ int rx65n_sbram_int(void)
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
const char *filename, int lineno,
const char *msg)
const char *msg, FAR void *regs)
{
struct fullcontext *pdump;
pdump = (struct fullcontext *)&g_sdata;

View File

@ -805,7 +805,7 @@ int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg);
struct tcb_s;
void board_crashdump(uintptr_t sp, FAR struct tcb_s *tcb,
FAR const char *filename, int lineno,
FAR const char *msg);
FAR const char *msg, FAR void *regs);
#endif
/****************************************************************************

View File

@ -601,7 +601,7 @@ void _assert(FAR const char *filename, int linenum,
#endif
#ifdef CONFIG_BOARD_CRASHDUMP
board_crashdump(up_getsp(), rtcb, filename, linenum, msg);
board_crashdump(up_getsp(), rtcb, filename, linenum, msg, regs);
#elif defined(CONFIG_BOARD_COREDUMP)
/* Dump core information */