HHDM (Higher-Half Direct Map) translation helpers — core interface. More...
import zxfoundation.base.types;Functions | |
| auto | zxfoundation::memory::hhdm::phys_coverage_end () noexcept -> u64 |
| Return the exclusive physical end covered by the active HHDM. | |
| auto | zxfoundation::memory::hhdm::phys_range_is_mapped (u64 phys, u64 bytes) noexcept -> bool |
| Test whether a physical range is covered by the active HHDM. | |
| auto | zxfoundation::memory::hhdm::phys_to_virt (u64 phys) noexcept -> u64 |
| Translate a physical address (raw integer) to its HHDM virtual counterpart. | |
| auto | zxfoundation::memory::hhdm::set_phys_coverage_end (u64 phys_end) noexcept -> void |
| Record the physical end covered by the active loader-built HHDM. | |
| auto | zxfoundation::memory::hhdm::virt_to_phys (u64 virt) noexcept -> u64 |
| Translate an HHDM virtual address back to its physical counterpart. | |
HHDM (Higher-Half Direct Map) translation helpers — core interface.
SPDX-License-Identifier: Apache-2.0
|
nodiscardexportnoexcept |
Return the exclusive physical end covered by the active HHDM.
|
nodiscardexportnoexcept |
Test whether a physical range is covered by the active HHDM.
| [in] | phys | Physical start address. |
| [in] | bytes | Range size in bytes. |
|
nodiscardexportnoexcept |
Translate a physical address (raw integer) to its HHDM virtual counterpart.
| [in] | phys | Raw physical address. |
phys + KERNEL_VIRTUAL_OFFSET.
|
exportnoexcept |
Record the physical end covered by the active loader-built HHDM.
| [in] | phys_end | Exclusive physical end address translated by the current HHDM DAT. |
|
nodiscardexportnoexcept |
Translate an HHDM virtual address back to its physical counterpart.
| [in] | virt | HHDM virtual address (must be >= KERNEL_VIRTUAL_OFFSET). |
virt - KERNEL_VIRTUAL_OFFSET.