pussuw commented on PR #15396: URL: https://github.com/apache/nuttx/pull/15396#issuecomment-2577037867
> @pussuw could you give the concrete return value from up_cpud_index and up_this_cpu on your platform? I need the conversion functions as well, because in mpfs_start we need to do the conversion before we can use up_cpu_index(): https://github.com/apache/nuttx/blob/cd83dc1317a9598949122152cd9fd3314c4214e6/arch/risc-v/src/mpfs/mpfs_start.c#L120 https://github.com/apache/nuttx/blob/cd83dc1317a9598949122152cd9fd3314c4214e6/arch/risc-v/src/mpfs/mpfs_start.c#L210 In supervisor mode, the hartid is available ONLY as the input parameter for mpfs_start(), before it is installed to the scratch register. The whole reason we need the scratch register to store hartid is the fact that supervisor mode simply does not have the hartid CSR. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org