MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / laihost_map

Function laihost_map

Kernel/src/arch/x86_64/acpi.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 }
260
261 void *laihost_map(size_t address, size_t count){
262 void* virt = Memory::KernelAllocate4KPages(count / PAGE_SIZE_4K + 1);
263
264 Memory::KernelMapVirtualMemory4K(address, (uintptr_t)virt, count / PAGE_SIZE_4K + 1);
265
266 return virt;
267 }
268
269 void laihost_unmap(void* ptr, size_t count){
270 // stub

Callers

nothing calls this directly

Calls 2

KernelAllocate4KPagesFunction · 0.85
KernelMapVirtualMemory4KFunction · 0.85

Tested by

no test coverage detected