no1wudi commented on code in PR #15081:
URL: https://github.com/apache/nuttx/pull/15081#discussion_r1888574750


##########
arch/risc-v/include/arch.h:
##########
@@ -120,6 +245,84 @@ extern "C"
 #define EXTERN extern
 #endif
 
+#ifndef __ASSEMBLY__
+
+/****************************************************************************

Review Comment:
   For this issue, these reading logics also should be protected by irq save/ 
irq restore:
   
https://github.com/apache/nuttx/blob/ffdbbdeef368bf31f067cc8d8941dda35f4ee84b/arch/risc-v/src/common/riscv_percpu.c#L172-L201



-- 
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]

Reply via email to