mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Fix loop counter... was overrunning a table on larger ELF files
This commit is contained in:
@@ -191,7 +191,7 @@ static int up_addrenv_create_region(FAR uintptr_t **list,
|
||||
*/
|
||||
|
||||
nmapped = 0;
|
||||
for (i = 0; i < npages; i++)
|
||||
for (i = 0; i < npages; i += ENTRIES_PER_L2TABLE)
|
||||
{
|
||||
/* Allocate one physical page for the L2 page table */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user