no1wudi commented on a change in pull request #5782: URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r830844807
########## File path: arch/risc-v/Kconfig ########## @@ -188,6 +189,30 @@ config ARCH_MMU_TYPE_SV39 bool default n +config ARCH_HAVE_S_MODE + bool + default n + +if ARCH_HAVE_S_MODE + +# Option to run NuttX in supervisor mode. This is obviously not usable in +# flat mode, is questionable in protected mode, but is mandatory in kernel +# mode. +# +# Kernel mode requires this as M-mode uses flat addressing and the kernel +# memory must be mapped in order to share memory between the kernel and +# different user tasks which reside in virtual memory. + +config ARCH_USE_S_MODE + bool "Run the NuttX kernel in S-mode instead of M-mode" Review comment: Change to "Run the NuttX kernel in S-mode" ? Since "M" means machine, it's from risc-v , but there are other target support supervisor also, we shold make the description more general. -- 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