You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/03/08 08:14:18 UTC

[incubator-nuttx] branch master updated: riscv/xtensa: corrent dumpstate xcp size

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 634d337  riscv/xtensa: corrent dumpstate xcp size
634d337 is described below

commit 634d337394c7092aec36903d5f3cadbf01fbd312
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Thu Mar 3 12:01:19 2022 +0800

    riscv/xtensa: corrent dumpstate xcp size
    
    Signed-off-by: zhuyanlin <zh...@xiaomi.com>
---
 arch/risc-v/src/common/riscv_assert.c     | 2 +-
 arch/xtensa/src/common/xtensa_dumpstate.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/risc-v/src/common/riscv_assert.c b/arch/risc-v/src/common/riscv_assert.c
index 2b49e8d..88fefc0 100644
--- a/arch/risc-v/src/common/riscv_assert.c
+++ b/arch/risc-v/src/common/riscv_assert.c
@@ -320,7 +320,7 @@ static void riscv_dumpstate(void)
   if (CURRENT_REGS)
     {
       memcpy(rtcb->xcp.regs,
-             (uintptr_t *)CURRENT_REGS, XCPTCONTEXT_REGS);
+             (uintptr_t *)CURRENT_REGS, XCPTCONTEXT_SIZE);
     }
   else
     {
diff --git a/arch/xtensa/src/common/xtensa_dumpstate.c b/arch/xtensa/src/common/xtensa_dumpstate.c
index 39e6629..6243023 100644
--- a/arch/xtensa/src/common/xtensa_dumpstate.c
+++ b/arch/xtensa/src/common/xtensa_dumpstate.c
@@ -288,7 +288,7 @@ void xtensa_dumpstate(void)
   if (CURRENT_REGS)
     {
       memcpy(rtcb->xcp.regs,
-             (uintptr_t *)CURRENT_REGS, XCPTCONTEXT_REGS);
+             (uintptr_t *)CURRENT_REGS, XCPTCONTEXT_SIZE);
     }
   else
     {