]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
kva_alloc: document linear mapping overlap with boot.S
authorTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 01:45:54 +0000 (22:45 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 11 Jun 2026 01:45:54 +0000 (22:45 -0300)
commit40ec7883cbddc38bf1703c39234470a8d3b6f248
treea163797225d24b7717b68184e313ec97f144391f
parent435e37b3141afbccd6d1907c58ae32f3d10f5fa2
kva_alloc: document linear mapping overlap with boot.S

Add documentation note explaining that the KVA allocator region
(0xC0500000..0xC0800000) falls within the initial 16MB linear mapping
set up by boot.S (0xC0000000..0xC0100000). This means V2P() works by
coincidence for addresses in this range, but code should use
vmm_virt_to_phys() instead to be portable and future-proof.

This documents the architectural fragility identified during H6
regression analysis.

Test: make test-battery PASS (157/157), make analyzer PASS
include/kva_alloc.h