pussuw edited a comment on pull request #5782: URL: https://github.com/apache/incubator-nuttx/pull/5782#issuecomment-1076325061
Maybe to add some implicit information that is missing. The S-mode implementation is a requirement for CONFIG_BUILD_KERNEL=y, which requires MMU mappings for the user- and kernelspaces. MMU is not active in M-mode, this is why the kernel must run in S-mode instead. Using S-mode in CONFIG_BUILD_FLAT is not really feasible, this is why the dependency `depends on BUILD_KERNEL && ARCH_USE_MMU` was added to the kconfig parameter. In CONFIG_BUILD_PROTECTED it could be done but is not required as the user- and kernelspaces still must exist in a flat address environment, so M-mode can be used. Only CONFIG_BUILD_KERNEL requires S-mode. I tend to forget that most use nuttx in flat mode only, while all of the changes I have made have been to the protected or kernel build targets. -- 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