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

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

commit 0a1f9c26c661c8637767a251dcd66ba856d16463
Author: hujun5 <[email protected]>
AuthorDate: Fri Jan 9 15:01:41 2026 +0800

    arch/arm64: remove REG_EXE_DEPTH
    
    remove REG_EXE_DEPTH
    
    Signed-off-by: hujun5 <[email protected]>
---
 arch/arm64/include/irq.h                        | 5 ++---
 arch/arm64/src/common/arm64_fork.c              | 2 --
 arch/arm64/src/common/arm64_initialstate.c      | 1 -
 arch/arm64/src/common/arm64_registerdump.c      | 1 -
 arch/arm64/src/common/arm64_schedulesigaction.c | 1 -
 5 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/include/irq.h b/arch/arm64/include/irq.h
index b2b6d5d9f72..46e64947fae 100644
--- a/arch/arm64/include/irq.h
+++ b/arch/arm64/include/irq.h
@@ -147,9 +147,8 @@
 #define REG_ELR             (32)
 #define REG_SPSR            (33)
 #define REG_SP_EL0          (34)
-#define REG_EXE_DEPTH       (35)
-#define REG_SCTLR_EL1       (36)
-#define REG_TPIDR_EL0       (37)
+#define REG_SCTLR_EL1       (35)
+#define REG_TPIDR_EL0       (36)
 
 /* In Armv8-A Architecture, the stack must align with 16 byte */
 
diff --git a/arch/arm64/src/common/arm64_fork.c 
b/arch/arm64/src/common/arm64_fork.c
index ee19efdb816..3abb067f3e4 100644
--- a/arch/arm64/src/common/arm64_fork.c
+++ b/arch/arm64/src/common/arm64_fork.c
@@ -261,7 +261,6 @@ static pid_t arm64_fork_direct(bool vfork, struct tcb_s 
*parent,
   child->xcp.regs[REG_SCTLR_EL1] = read_sysreg(sctlr_el1) | SCTLR_TCF1_BIT;
 #endif
 
-  child->xcp.regs[REG_EXE_DEPTH] = 0;
   child->xcp.regs[REG_TPIDR_EL0] = (uint64_t)child->stack_alloc_ptr;
   child->xcp.regs[REG_SP_ELX]    = newsp - XCPTCONTEXT_SIZE;
 #ifdef CONFIG_ARCH_KERNEL_STACK
@@ -377,7 +376,6 @@ static pid_t arm64_fork_syscall(bool vfork, struct tcb_s 
*parent)
 
   child->xcp.regs[REG_X0]        = 0;
   child->xcp.regs[REG_FP]        = newfp;
-  child->xcp.regs[REG_EXE_DEPTH] = 0;
   child->xcp.regs[REG_TPIDR_EL0] = (uint64_t)child->stack_alloc_ptr;
   child->xcp.regs[REG_SP_ELX]    = regtop - XCPTCONTEXT_SIZE;
 
diff --git a/arch/arm64/src/common/arm64_initialstate.c 
b/arch/arm64/src/common/arm64_initialstate.c
index 752f4b5ddb7..220306f92dc 100644
--- a/arch/arm64/src/common/arm64_initialstate.c
+++ b/arch/arm64/src/common/arm64_initialstate.c
@@ -103,7 +103,6 @@ void arm64_new_task(struct tcb_s * tcb)
 #else
   xcp->regs[REG_SP_EL0]    = (uint64_t)stack_ptr - XCPTCONTEXT_SIZE;
 #endif
-  xcp->regs[REG_EXE_DEPTH] = 0;
 
   /* TPIDR_EL0 points to the TLS info of the thread, see up_tls_info() */
 
diff --git a/arch/arm64/src/common/arm64_registerdump.c 
b/arch/arm64/src/common/arm64_registerdump.c
index 6e89247c005..0140b8f3738 100644
--- a/arch/arm64/src/common/arm64_registerdump.c
+++ b/arch/arm64/src/common/arm64_registerdump.c
@@ -93,7 +93,6 @@ void up_dump_register(void *dumpregs)
   _alert("ELR:       0x%-16"PRIx64"\n", regs[REG_ELR]);
   _alert("SP_EL0:    0x%-16"PRIx64"\n", regs[REG_SP_EL0]);
   _alert("SP_ELX:    0x%-16"PRIx64"\n", regs[REG_SP_ELX]);
-  _alert("EXE_DEPTH: 0x%-16"PRIx64"\n", regs[REG_EXE_DEPTH]);
 
 #ifdef CONFIG_ARM64_MTE
   _alert("SCTLR_EL1: 0x%-16"PRIx64"\n", regs[REG_SCTLR_EL1]);
diff --git a/arch/arm64/src/common/arm64_schedulesigaction.c 
b/arch/arm64/src/common/arm64_schedulesigaction.c
index 33c6350e2bb..bbe16ad31b8 100644
--- a/arch/arm64/src/common/arm64_schedulesigaction.c
+++ b/arch/arm64/src/common/arm64_schedulesigaction.c
@@ -76,7 +76,6 @@ static void arm64_init_signal_process(struct tcb_s *tcb, 
uint64_t *regs)
   tcb->xcp.regs[REG_SP_EL0] = regs[REG_SP_ELX] - XCPTCONTEXT_SIZE * 2;
 #endif
   tcb->xcp.regs[REG_SP_ELX] = regs[REG_SP_ELX] - XCPTCONTEXT_SIZE;
-  tcb->xcp.regs[REG_EXE_DEPTH] = 1;
   tcb->xcp.regs[REG_SCTLR_EL1] = regs[REG_SCTLR_EL1];
   tcb->xcp.regs[REG_TPIDR_EL0] = regs[REG_TPIDR_EL0];
 }

Reply via email to