pussuw commented on code in PR #15081: URL: https://github.com/apache/nuttx/pull/15081#discussion_r1888092922
########## arch/risc-v/include/arch.h: ########## @@ -120,6 +245,84 @@ extern "C" #define EXTERN extern #endif +#ifndef __ASSEMBLY__ + +/**************************************************************************** Review Comment: @xiaoxiang781216 is right, accessing CSR_SCRATCH->xxx is only safe when a context switch (CPU switch) cannot occur, meaning local interrupts have to be disabled. We need to use TP for the information, but it does not work for FLAT mode I think? -- 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]
