You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enables virtual memory for the Raspberry Pi 5 target by implementing the required BSP-specific memory layout.
This resolves a silent hang on boot that occurs immediately after the MMU is enabled. The root cause was a Translation Fault when the kernel tried to access peripheral drivers in high memory (0x1f...). The initial 4 GiB virtual address space was too small, so no page table entries were being generated for the RP1's MMIO region.
This fix includes:
1. In 'memory.rs', the virtual address space is expanded to 128 GiB, the smallest power-of-two that encompasses the RP1's MMIO addresses.
2. A new 'memory/mmu.rs' file is added to define the 'KernelVirtualLayout'. This layout correctly identity-maps the RP1 peripheral range as Device memory and ports the tutorial's educational UART remapping feature.
3. The 'kernel.ld' linker script is updated to align the code section to a 64 KiB page boundary and export the symbols required by the MMU layout code.
0 commit comments