mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
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:
committed by
David Sidrane
parent
fdf325c7e3
commit
6576306bca
@@ -454,7 +454,7 @@ static inline void write_gsbase(unsigned long val)
|
||||
|
||||
/* Return stack pointer */
|
||||
|
||||
static inline uint64_t x64_getsp()
|
||||
static inline uint64_t up_getsp()
|
||||
{
|
||||
uint64_t regval;
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
static inline FAR struct tls_info_s *up_tls_info(void)
|
||||
{
|
||||
DEBUGASSERT(!up_interrupt_context());
|
||||
return TLS_INFO((uintptr_t)x64_getsp());
|
||||
return TLS_INFO((uintptr_t)up_getsp());
|
||||
}
|
||||
#else
|
||||
# define up_tls_info() tls_get_info()
|
||||
|
||||
Reference in New Issue
Block a user