jasonbu opened a new pull request, #16263: URL: https://github.com/apache/nuttx/pull/16263
## Summary fix kernel-smp cannot run in qemu-virt arm-v7a, mmu should be enabled again. If smp enabled, mmu default disabled in arm_head.S, We have to re-enable it in arm_boot per-chip. As out current design, each cpu manage task mmu table by insert and erase like-behavior for arm32, have to per-cpu mmu-table when kernel build. for up_allocate_kheap function, the address is duplicated with mmu table, once we copy from cpu0 to cpu-n, the heap will report debug_assert. We should reserve ram for mmutable, and not touched by kernel-heap. add a knsh_smp defconfig to ensure it works as expect. ## Impact with qemu-virt arm-v7a board, the kernel build able to work with SMP at the same time. with ## Testing CI-test, qemu-armv7a-knsh_smp, local goldfish smp project. -- 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