xiaoxiang781216 commented on code in PR #13486:
URL: https://github.com/apache/nuttx/pull/13486#discussion_r1764766955
##########
arch/arm/include/armv7-a/irq.h:
##########
@@ -490,13 +484,36 @@ static inline_function uint32_t up_getsp(void)
return sp;
}
-#endif /* __ASSEMBLY__ */
+static inline_function uint32_t *up_current_regs(void)
+{
+ uint32_t *regs;
+ __asm__ __volatile__
+ (
+ "mrc " "p15, " "0" ", %0, " "c13" ", " "c0" ", " "4" "\n"
Review Comment:
but cp15 is only useable for R and A profile, it isn't good to bring the
whole file to public folder.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]