This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6c38c44af2110dccb783b0f3c3d70db32d312b09
Author: zhangyuan21 <[email protected]>
AuthorDate: Thu Jun 8 16:39:09 2023 +0800

    assert: add regs parameter to board_crashdump function
    
    Signed-off-by: zhangyuan21 <[email protected]>
---
 boards/arm/cxd56xx/common/src/cxd56_crashdump.c     | 2 +-
 boards/arm/stm32/nucleo-f429zi/src/stm32_bbsram.c   | 2 +-
 boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c    | 2 +-
 boards/renesas/rx65n/rx65n-grrose/src/rx65n_sbram.c | 2 +-
 boards/renesas/rx65n/rx65n-rsk2mb/src/rx65n_sbram.c | 2 +-
 include/nuttx/board.h                               | 2 +-
 sched/misc/assert.c                                 | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/boards/arm/cxd56xx/common/src/cxd56_crashdump.c 
b/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
index 30cb86e9d0..3ccafea267 100644
--- a/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
+++ b/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
@@ -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;
 
diff --git a/boards/arm/stm32/nucleo-f429zi/src/stm32_bbsram.c 
b/boards/arm/stm32/nucleo-f429zi/src/stm32_bbsram.c
index effeffbea3..ce22a547a6 100644
--- a/boards/arm/stm32/nucleo-f429zi/src/stm32_bbsram.c
+++ b/boards/arm/stm32/nucleo-f429zi/src/stm32_bbsram.c
@@ -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;
diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c 
b/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c
index e73fcab10a..e1eeb7e008 100644
--- a/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c
+++ b/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c
@@ -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;
diff --git a/boards/renesas/rx65n/rx65n-grrose/src/rx65n_sbram.c 
b/boards/renesas/rx65n/rx65n-grrose/src/rx65n_sbram.c
index 477d0f2a47..42650573a3 100644
--- a/boards/renesas/rx65n/rx65n-grrose/src/rx65n_sbram.c
+++ b/boards/renesas/rx65n/rx65n-grrose/src/rx65n_sbram.c
@@ -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;
diff --git a/boards/renesas/rx65n/rx65n-rsk2mb/src/rx65n_sbram.c 
b/boards/renesas/rx65n/rx65n-rsk2mb/src/rx65n_sbram.c
index 692600e81d..bed17a1022 100644
--- a/boards/renesas/rx65n/rx65n-rsk2mb/src/rx65n_sbram.c
+++ b/boards/renesas/rx65n/rx65n-rsk2mb/src/rx65n_sbram.c
@@ -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;
diff --git a/include/nuttx/board.h b/include/nuttx/board.h
index 44467c8c22..55dcd633c9 100644
--- a/include/nuttx/board.h
+++ b/include/nuttx/board.h
@@ -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
 
 /****************************************************************************
diff --git a/sched/misc/assert.c b/sched/misc/assert.c
index 8b3e2947ad..a1d09353be 100644
--- a/sched/misc/assert.c
+++ b/sched/misc/assert.c
@@ -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 */

Reply via email to