jasonbu commented on code in PR #16344:
URL: https://github.com/apache/nuttx/pull/16344#discussion_r2081266654


##########
arch/arm/src/armv7-a/arm_addrenv.c:
##########
@@ -238,14 +182,27 @@ int up_addrenv_create(size_t textsize, size_t datasize, 
size_t heapsize,
 
   memset(addrenv, 0, sizeof(arch_addrenv_t));
 
+  tablesize = PGTABLE_SIZE * sizeof(uintptr_t);
+  addrenv->l1table = kmm_memalign(tablesize, tablesize);

Review Comment:
   Try test with mm_pgalloc(MM_NPAGES(tablesize)); cannot pass the knsh & 
knsh_smp `hello` test, maybe we should replace as a optimize in further commit? 
 also if 
   ```C
   for(){mm_pgalloc(1)}
   ```
   possible get mmu table not contiguous, maybe some problem?



-- 
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]

Reply via email to