riscv/xtensa: corrent dumpstate xcp size

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-03-03 12:01:19 +08:00 committed by Petro Karashchenko
parent a14ed02571
commit 634d337394
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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
{