mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
The page pool is carved out of the PSRAM that user processes run from, and the external memory permissions are indexed by physical address, so a permanent kernel window onto the pool is a window onto every process, which no permission setting can close. Stop mapping the pool. The kernel reaches a pool page through a small scratch region instead, mapped for one operation and invalidated afterwards. esp32s3_pgmap() takes a slot, esp32s3_pgunmap() releases it, and ARCH_KMAP_VBASE and ARCH_KMAP_NPAGES describe the region. Two slots are enough, because the deepest user is up_addrenv_fork(), which holds a source and a destination page at once. Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| cmake | ||
| common | ||
| esp32 | ||
| esp32s2 | ||
| esp32s3 | ||
| lx6 | ||
| lx7 | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Makefile | ||