arch/tricore: Resolving gcc compilation warning

fix type error and add up_getusrpc()

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
liwenxiang1
2024-11-07 20:19:56 +08:00
committed by Xiang Xiao
parent 8da6b45939
commit 8a15aebfea
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -69,14 +69,14 @@
#define PRIx32 "lx"
#define PRIx64 "llx"
#define PRIxPTR "x"
#define PRIxPTR "lx"
#define PRIX8 "X"
#define PRIX16 "X"
#define PRIX32 "lX"
#define PRIX64 "llX"
#define PRIXPTR "X"
#define PRIXPTR "lX"
#define SCNd8 "hhd"
#define SCNd16 "hd"
+7
View File
@@ -220,6 +220,13 @@ static inline_function uintptr_t up_getusrsp(void *regs)
#endif /* __ASSEMBLY__ */
/****************************************************************************
* Name: up_getusrpc
****************************************************************************/
#define up_getusrpc(regs) \
(((uint32_t *)((regs) ? (regs) : up_current_regs()))[REG_UPC])
#undef EXTERN
#ifdef __cplusplus
}