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 42b4722df87f80b5b980d20517004a2b09d8cdc2
Author: Saravanan Sekar <[email protected]>
AuthorDate: Thu Nov 5 10:49:32 2026 +0530

    arch/tricore: Use the NuttX CSFR offsets in tricore_saveusercontext.c.
    
    Access the PCXI registers with the offsets from arch/csfr.h instead of
    the iLLD CPU_* names, one step towards common TriCore code that does not
    need the iLLD.
    
    Signed-off-by: Saravanan Sekar <[email protected]>
---
 arch/tricore/src/common/tricore_saveusercontext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/tricore/src/common/tricore_saveusercontext.c 
b/arch/tricore/src/common/tricore_saveusercontext.c
index 520b2568822..bb5f3c69bed 100644
--- a/arch/tricore/src/common/tricore_saveusercontext.c
+++ b/arch/tricore/src/common/tricore_saveusercontext.c
@@ -54,7 +54,7 @@ int up_saveusercontext(void *saveregs)
   uintptr_t pcxi;
   int csa_size = TC_CONTEXT_REGS * sizeof(uintptr_t);
 
-  pcxi = tricore_mfcr(CPU_PCXI);
+  pcxi = tricore_mfcr(TRICORE_CPU_PCXI);
   regs = tricore_csa2addr(pcxi);
   memcpy((char *)saveregs + csa_size, regs, csa_size);
 
@@ -62,7 +62,7 @@ int up_saveusercontext(void *saveregs)
 
   __asm("svlcx");
 
-  regs = tricore_csa2addr(tricore_mfcr(CPU_PCXI));
+  regs = tricore_csa2addr(tricore_mfcr(TRICORE_CPU_PCXI));
   memcpy(saveregs, regs, csa_size);
 
   /* lowcsa[REG_LPCXI] saves the upcsa's pcxi, but if lowcsa and upcsa is

Reply via email to