]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: replace hardcoded 0xC0000000 in pmm.c with hal_mm_kernel_virt_base()
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:09:56 +0000 (01:09 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:09:56 +0000 (01:09 -0300)
commit9a3854c8e48867812264de31893064449740c571
tree068fa337ca65877af32c206f6c8449e72d018af2
parent7715d2b4ce2e1ad6a62f3cba19f40baff5f13c21
fix: replace hardcoded 0xC0000000 in pmm.c with hal_mm_kernel_virt_base()

pmm.c used raw 0xC0000000 to detect higher-half kernel and adjust
physical addresses. Replace with hal_mm_kernel_virt_base() so the
PMM works correctly on architectures with different kernel virtual
base addresses.

Passes: make, cppcheck, QEMU smoke test.
src/mm/pmm.c