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


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

Review Comment:
   @pussuw TP is used for thread local storage if it's enabled
   
   If these API are not called frequently, how about store the TCB pointer in 
scratch register, and use another approach to get them, such as fetch percpu_s 
from `g_percpu` by hart id?



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