pussuw commented on code in PR #15081: URL: https://github.com/apache/nuttx/pull/15081#discussion_r1891247607
########## arch/risc-v/include/arch.h: ########## @@ -120,6 +245,84 @@ extern "C" #define EXTERN extern #endif +#ifndef __ASSEMBLY__ + +/**************************************************************************** Review Comment: I guess I don't have any objections to this. It can work in flat mode. Btw you could use tp in protected / kernel mode (CONFIG_SYSCALL=y), just swap the user tp with CSR_SCRATCH->tcb in exception_common, and update tp when a context switch occurs. This way even the protected builds could enjoy the 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]
