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

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

commit 483f84528ea25b1befd73a654350dd7a6a56c254
Author: yangao1 <[email protected]>
AuthorDate: Wed Sep 10 22:18:49 2025 +0800

    arch/tricore: use UPCXI as pcx in tcbinfo
    
    Report the PCXI saved in the upper context, which is the value used
    to restore the task context.
    
    Signed-off-by: yangao1 <[email protected]>
---
 arch/tricore/src/common/tricore_tcbinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/tricore/src/common/tricore_tcbinfo.c 
b/arch/tricore/src/common/tricore_tcbinfo.c
index c2e95dd2bb2..144cb340909 100644
--- a/arch/tricore/src/common/tricore_tcbinfo.c
+++ b/arch/tricore/src/common/tricore_tcbinfo.c
@@ -70,7 +70,7 @@ static const uint16_t g_reg_offs[] =
   TCB_REG_OFF(16 + REG_A15),
   UINT16_MAX,
   UINT16_MAX,
-  TCB_REG_OFF(REG_LPCXI),
+  TCB_REG_OFF(16 + REG_UPCXI),
   TCB_REG_OFF(16 + REG_PSW),
   TCB_REG_OFF(REG_LA11),
   UINT16_MAX,

Reply via email to