assert: add regs parameter to board_crashdump function
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
acddda812c
commit
6c38c44af2
@ -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,
|
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
||||||
const char *filename, int lineno,
|
const char *filename, int lineno,
|
||||||
const char *msg)
|
const char *msg, FAR void *regs)
|
||||||
{
|
{
|
||||||
fullcontext_t *pdump;
|
fullcontext_t *pdump;
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ int stm32_bbsram_int(void)
|
|||||||
#if defined(CONFIG_STM32_SAVE_CRASHDUMP)
|
#if defined(CONFIG_STM32_SAVE_CRASHDUMP)
|
||||||
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
||||||
const char *filename, int lineno,
|
const char *filename, int lineno,
|
||||||
const char *msg)
|
const char *msg, FAR void *regs)
|
||||||
{
|
{
|
||||||
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
|
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -381,7 +381,7 @@ int stm32_bbsram_int(void)
|
|||||||
#if defined(CONFIG_STM32F7_SAVE_CRASHDUMP)
|
#if defined(CONFIG_STM32F7_SAVE_CRASHDUMP)
|
||||||
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
||||||
const char *filename, int lineno,
|
const char *filename, int lineno,
|
||||||
const char *msg)
|
const char *msg, FAR void *regs)
|
||||||
{
|
{
|
||||||
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
|
fullcontext_t *pdump = (fullcontext_t *)&g_sdata;
|
||||||
int rv;
|
int rv;
|
||||||
|
@ -334,7 +334,7 @@ int rx65n_sbram_int(void)
|
|||||||
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
|
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
|
||||||
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
||||||
const char *filename, int lineno,
|
const char *filename, int lineno,
|
||||||
const char *msg)
|
const char *msg, FAR void *regs)
|
||||||
{
|
{
|
||||||
struct fullcontext *pdump;
|
struct fullcontext *pdump;
|
||||||
pdump = (struct fullcontext *)&g_sdata;
|
pdump = (struct fullcontext *)&g_sdata;
|
||||||
|
@ -332,7 +332,7 @@ int rx65n_sbram_int(void)
|
|||||||
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
|
#if defined(CONFIG_RX65N_SAVE_CRASHDUMP)
|
||||||
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
void board_crashdump(uintptr_t sp, struct tcb_s *tcb,
|
||||||
const char *filename, int lineno,
|
const char *filename, int lineno,
|
||||||
const char *msg)
|
const char *msg, FAR void *regs)
|
||||||
{
|
{
|
||||||
struct fullcontext *pdump;
|
struct fullcontext *pdump;
|
||||||
pdump = (struct fullcontext *)&g_sdata;
|
pdump = (struct fullcontext *)&g_sdata;
|
||||||
|
@ -805,7 +805,7 @@ int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg);
|
|||||||
struct tcb_s;
|
struct tcb_s;
|
||||||
void board_crashdump(uintptr_t sp, FAR struct tcb_s *tcb,
|
void board_crashdump(uintptr_t sp, FAR struct tcb_s *tcb,
|
||||||
FAR const char *filename, int lineno,
|
FAR const char *filename, int lineno,
|
||||||
FAR const char *msg);
|
FAR const char *msg, FAR void *regs);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -601,7 +601,7 @@ void _assert(FAR const char *filename, int linenum,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BOARD_CRASHDUMP
|
#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)
|
#elif defined(CONFIG_BOARD_COREDUMP)
|
||||||
/* Dump core information */
|
/* Dump core information */
|
||||||
|
Loading…
Reference in New Issue
Block a user