]> 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)
commit93afa612c1aa6b1bf053eef36d51ba220447b002
tree991e95a76620a185904631991a798e3b921136c4
parent3432bdd7e2bc1a194f4290cf7986149c00f5f51b
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