mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch:use ARCH_64BIT to mark arch is support 64bit
Add ARCH_64BIT macro to indicate architectures with 64-bit support, improving portability and conditional compilation. Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -46,11 +46,11 @@
|
||||
|
||||
/* ELF32 and ELF64 definitions */
|
||||
|
||||
#ifdef CONFIG_LIBC_ARCH_ELF_64BIT
|
||||
#ifdef CONFIG_ARCH_64BIT
|
||||
# define ARCH_ELF_TYP_STR "64"
|
||||
#else /* !CONFIG_LIBC_ARCH_ELF_64BIT */
|
||||
#else /* !CONFIG_ARCH_64BIT */
|
||||
# define ARCH_ELF_TYP_STR "32"
|
||||
#endif /* CONFIG_LIBC_ARCH_ELF_64BIT */
|
||||
#endif /* CONFIG_ARCH_64BIT */
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data Types
|
||||
@@ -275,7 +275,7 @@ static uintptr_t _find_hi20(void *arch_data, uintptr_t hi20_rel)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_LIBC_ARCH_ELF_64BIT
|
||||
#ifdef CONFIG_ARCH_64BIT
|
||||
static inline bool _valid_hi20_imm(long imm_hi)
|
||||
{
|
||||
/* 32-bit sign extend imm_hi and compare with the original value */
|
||||
|
||||
Reference in New Issue
Block a user