| 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 |
nothing calls this directly
no test coverage detected