| 474 | } |
| 475 | |
| 476 | void KernelFree2MPages(void* addr, uint64_t amount){ |
| 477 | while(amount--){ |
| 478 | uint64_t pageDirIndex = PAGE_DIR_GET_INDEX((uint64_t)addr); |
| 479 | kernelHeapDir[pageDirIndex] = 0; |
| 480 | addr = (void*)((uint64_t)addr + 0x200000); |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | void Free4KPages(void* addr, uint64_t amount, address_space_t* addressSpace){ |
| 485 | uint64_t pml4Index, pdptIndex, pageDirIndex, pageIndex; |
nothing calls this directly
no outgoing calls
no test coverage detected