On 1/24/2024 3:44 PM, Gregory Nutt wrote:
The on-demand paging logic is obsolete and incomplete as well as
incorrect for the current architecture. It was an experiment only for
the LPC3131 when I was running out of a small SRAM with dynamic paging
from SPI flash. It really should be removed.
True on-demand paging as you envision should be implemented in the
context of the kernel build mode (which did not exist in the time
frame of the LPC3131) which already supports dynamic paging of the
heap, but not the stack or instruction space.
There is also:
https://cwiki.apache.org/confluence/display/NUTTX/On-Demand+Paging
There is also this better reference:
https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
. It address both the on-demand paging featured (briefly) and compares
this to Kernel mode (in depth).