mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 15:54:57 +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
@@ -30,10 +30,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sim_getsp
|
||||
* Name: up_getsp
|
||||
****************************************************************************/
|
||||
|
||||
static inline uintptr_t sim_getsp(void)
|
||||
static inline uintptr_t up_getsp(void)
|
||||
{
|
||||
return (uintptr_t)__builtin_frame_address(0);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#ifdef CONFIG_TLS_ALIGNED
|
||||
static inline FAR struct tls_info_s *up_tls_info(void)
|
||||
{
|
||||
return TLS_INFO(sim_getsp());
|
||||
return TLS_INFO(up_getsp());
|
||||
}
|
||||
#else
|
||||
# define up_tls_info() tls_get_info()
|
||||
|
||||
Reference in New Issue
Block a user