jerpelea opened a new pull request, #19194: URL: https://github.com/apache/nuttx/pull/19194
## Summary In arm_addrenv_create_region(), the inner loop already advances vaddr by MM_PGSIZE for each mapped page, so after filling one L2 page table (i.e., ENTRIES_PER_L2TABLE pages), vaddr has naturally advanced to the start of the next 1MB section. The old code additionally added i * SECTION_SIZE, causing the L1 entry for the second and subsequent sections to skip one section each iteration—leaving virtual address holes in the mapping. Remove the redundant i * SECTION_SIZE offset so that the L1 entry tracks the vaddr already maintained by the inner loop, producing contiguous section mappings. ## Impact RELEASE ## Testing CI -- 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]
