nuttx/boards
liang.huang 1653db7ddc riscv: Fix page table traversal for SV39
With CONFIG_PAGING enabled and the RISC-V SV39 MMU active, the page fault
handler incorrectly tracked page table levels: `ptprev` pointed to the L1
page table while `ptlevel` indicated L2. This inconsistency caused faulty
virtual address resolution.

This commit fixes the traversal logic to ensure consistent level tracking
across all three page table levels (L1–L3), enabling reliable page fault
handling and on-demand paging.

Additional changes:
- Set PGT_L3_SIZE to 2048 to enable mapping up to 8MB of address space.
- Update knsh_paging config to avoid crashes caused by excessive memory
  alignment requirements.
- Add knsh64_paging config to verify this commit works as expected.

Signed-off-by: liang.huang <liang.huang@houmo.ai>
2026-02-04 11:52:04 -03:00
..
arm boardss: add gprof examples 2026-02-04 03:03:45 +08:00
arm64 drivers/virtio and vhost: auto-select parent config from sub-drivers 2026-02-04 02:32:02 +08:00
avr arch/avr/avrdx: do not copy const variables into RAM 2025-07-10 12:21:40 -03:00
dummy
hc/m9s12 boards/hc/m9s12: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
mips boards: remove reference to non-existent readme 2025-10-11 17:07:51 -04:00
misoc/lm32/misoc boards/misoc/lm32: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
or1k/mor1kx/or1k boards/defconfig: remove unused config about dd 2025-04-20 00:41:26 +08:00
renesas Make/Toolchain.defs: add the AR_EXTRACT command 2025-08-19 09:47:44 +08:00
risc-v riscv: Fix page table traversal for SV39 2026-02-04 11:52:04 -03:00
sim/sim/sim drivers/virtio and vhost: auto-select parent config from sub-drivers 2026-02-04 02:32:02 +08:00
sparc sched/sleep: replace all Signal-based sleep implement to Scheduled sleep 2025-10-17 14:05:02 +08:00
tricore/tc397/a2g-tc397-5v-tft arch/tricore: support minimal vectortalbe in tricore 2026-01-19 17:51:48 +08:00
x86/qemu/qemu-i486 qemu-i486: Simplify Make.defs by include Toolchain.defs 2025-01-27 02:28:39 +08:00
x86_64/qemu/qemu-intel64 boards/qemu-intel64/jumbo: enable procfs ACPI 2026-01-19 14:46:34 +01:00
xtensa protect: move us_heap to userspace_data_s 2026-02-02 11:06:53 +08:00
z16/z16f/z16f2800100zcog boards/z16/z16f: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
z80 sched/sleep: replace all Signal-based sleep implement to Scheduled sleep 2025-10-17 14:05:02 +08:00
.gitignore
Board.mk
boardctl.c boards/boardctl.c: BOARDIOC_SPINLOCK missing some Conditional branch 2026-02-02 20:40:33 +08:00
CMakeLists.txt boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
dummy.c boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
Kconfig boards: Fix Kconfig style 2026-02-03 09:36:16 +08:00
Makefile boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00