arch: Rename xxx_getsp to up_getsp

All modern desgin support stack pointer and it's also an
important information, so let's standardize this interface.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-06-09 16:26:18 +08:00
committed by David Sidrane
parent fdf325c7e3
commit 6576306bca
65 changed files with 126 additions and 109 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ void up_assert(const char *filename, int lineno)
#ifdef CONFIG_BOARD_CRASHDUMP
/* Execute board-specific crash dump logic */
board_crashdump(z80_getsp(), running_task(), filename, lineno);
board_crashdump(up_getsp(), running_task(), filename, lineno);
#endif
_up_assert();
+1 -1
View File
@@ -128,7 +128,7 @@ int up_multicastfilter(FAR struct net_driver_s *dev, FAR uint8_t *mac,
/* Return the current value of the stack pointer (used in stack dump logic) */
uintptr_t z80_getsp(void);
uintptr_t up_getsp(void);
/* Dump stack and registers */
+1 -1
View File
@@ -44,7 +44,7 @@
void up_stackdump(void)
{
FAR struct tcb_s *rtcb = this_task();
uintptr_t sp = z80_getsp();
uintptr_t sp = up_getsp();
uintptr_t stack_base = (uintptr_t)rtcb->stack_base_ptr;
uintptr_t stack_size = (uintptr_t)rtcb->adj_stack_size;
uintptr_t stack;
+3 -3
View File
@@ -22,7 +22,7 @@
; Global Symbols Exported
;**************************************************************************
xdef _z80_getsp
xdef _up_getsp
;**************************************************************************
; Code
@@ -32,14 +32,14 @@
.assume ADL=1
;**************************************************************************
;* Name: _z80_getsp
;* Name: _up_getsp
;*
;* Description:
;* Return the current value of the stack pointer
;*
;**************************************************************************
_z80_getsp:
_up_getsp:
ld hl, 0 ; Initialize HL to zero
add hl, sp ; Add the stack pointer to HL
ret ; Return stack pointer in HL