hujun260 commented on code in PR #13486:
URL: https://github.com/apache/nuttx/pull/13486#discussion_r1764704054
##########
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:
cp15.h is internal head file
we can't include cp15.h into irq.h
--
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]