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


##########
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:
   You are right, I misread. 
   `
   The L1 translation table divides the full 4GB address space of a 32-bit core 
into 4096 equally sized sections, each of which describes 1MB of virtual memory 
space.`
   
   4096 * sizeof(uint32) = 16K.



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

Reply via email to