MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / IdentityVirtToPhys

Function IdentityVirtToPhys

src/include/io_buffer.hpp:25–27  ·  view source on GitHub ↗

* @brief 恒等映射:物理地址 == 虚拟地址(早期启动 / 无 MMU 时的默认实现) * @param virt 虚拟地址 * @return 与输入相同的物理地址 */

Source from the content-addressed store, hash-verified

23 * @return 与输入相同的物理地址
24 */
25[[nodiscard]] inline auto IdentityVirtToPhys(uintptr_t virt) -> uintptr_t {
26 return virt;
27}
28
29/**
30 * @brief DMA 可访问内存区域的非拥有描述符

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68