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
+2 -2
View File
@@ -36,10 +36,10 @@
****************************************************************************/
/****************************************************************************
* Name: misoc_getsp
* Name: up_getsp
****************************************************************************/
static inline uint32_t misoc_getsp(void)
static inline uint32_t up_getsp(void)
{
register uint32_t sp;
+1 -1
View File
@@ -66,7 +66,7 @@
static inline FAR struct tls_info_s *up_tls_info(void)
{
DEBUGASSERT(!up_interrupt_context());
return TLS_INFO((uintptr_t)misoc_getsp());
return TLS_INFO((uintptr_t)up_getsp());
}
#else
# define up_tls_info() tls_get_info()
+1 -1
View File
@@ -164,7 +164,7 @@ void up_assert(const char *filename, int lineno)
syslog_flush();
#ifdef CONFIG_BOARD_CRASHDUMP
board_crashdump(misoc_getsp(), running_task(), filename, lineno);
board_crashdump(up_getsp(), running_task(), filename, lineno);
#endif
_up_assert();
+2 -2
View File
@@ -48,7 +48,7 @@
static void up_stackdump(uint32_t sp, uint32_t stack_top)
{
uint32_t stack ;
uint32_t stack;
for (stack = sp & ~0x1f; stack < stack_top; stack += 32)
{
@@ -111,7 +111,7 @@ static inline void up_registerdump(void)
void lm32_dumpstate(void)
{
struct tcb_s *rtcb = running_task();
uint32_t sp = misoc_getsp();
uint32_t sp = up_getsp();
uint32_t ustackbase;
uint32_t ustacksize;
#if CONFIG_ARCH_INTERRUPTSTACK > 3
+1 -1
View File
@@ -163,7 +163,7 @@ void up_assert(const char *filename, int lineno)
syslog_flush();
#ifdef CONFIG_BOARD_CRASHDUMP
board_crashdump(misoc_getsp(), running_task(), filename, lineno);
board_crashdump(up_getsp(), running_task(), filename, lineno);
#endif
_up_assert();
+1 -1
View File
@@ -113,7 +113,7 @@ static inline void up_registerdump(void)
void minerva_dumpstate(void)
{
struct tcb_s *rtcb = running_task();
uint32_t sp = misoc_getsp();
uint32_t sp = up_getsp();
uint32_t ustackbase;
uint32_t ustacksize;
#if CONFIG_ARCH_INTERRUPTSTACK > 3