no1wudi commented on code in PR #15081: URL: https://github.com/apache/nuttx/pull/15081#discussion_r1887789802
########## arch/risc-v/include/arch.h: ########## @@ -120,6 +245,84 @@ extern "C" #define EXTERN extern #endif +#ifndef __ASSEMBLY__ + +/**************************************************************************** Review Comment: There is a extra memory read operation by this approach compared to ARM's, but it works: ```c #define up_this_task() (*((struct tcb_s **)READ_CSR(CSR_SCRATCH))) ``` -- 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]
