This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 256c5c266a0ea8d6030076b7316c9b3dd7b54dd9 Author: Byron Ellacott <c...@bje.id.au> AuthorDate: Wed Feb 17 17:38:33 2021 +1000 eZ80: fix name of SP register in stack frame --- arch/z80/src/common/z80_stackframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/z80/src/common/z80_stackframe.c b/arch/z80/src/common/z80_stackframe.c index 25d6ba4..2120bb9 100644 --- a/arch/z80/src/common/z80_stackframe.c +++ b/arch/z80/src/common/z80_stackframe.c @@ -105,7 +105,7 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) /* Reset the initial stack pointer */ - tcb->xcp.regs[REG_RSP] = (chipreg_t)tcb->adj_stack_ptr; + tcb->xcp.regs[XCPT_SP] = (chipreg_t)tcb->adj_stack_ptr; /* And return a pointer to the allocated memory */