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


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

Review Comment:
   I think we should do it so that tcb is forced to be the first element of 
CSR_SCRATCH, and we can access tcb by simply reading the scratch register's 
first index. This way we don't need to expose the public API and we get the 
maximum speed benefit.
   
   



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