jasonbu commented on code in PR #16344:
URL: https://github.com/apache/nuttx/pull/16344#discussion_r2081501666
##########
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:
add a mm_pgalloc_align API to handle the alignment pgalloc, now it worked.
but I tested
```C
addrenv->l1table = (uintptr_t *)mm_pgalloc_align(1, npage);
```
will not work,
the l1table search behavior is
```C
uintptr_t *l1table[va>>20];
```
12bit 4096 entry * sizeof(32bit), 16KB is required.
--
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]