| 173 | } |
| 174 | |
| 175 | int MemoryManager::allocateVirtualPages(enum AddressPoolType type, const int count) |
| 176 | { |
| 177 | int start = -1; |
| 178 | |
| 179 | if (type == AddressPoolType::KERNEL) |
| 180 | { |
| 181 | start = kernelVirtual.allocate(count); |
| 182 | } |
| 183 | |
| 184 | return (start == -1) ? 0 : start; |
| 185 | } |
| 186 | |
| 187 | bool MemoryManager::connectPhysicalVirtualPage(const int virtualAddress, const int physicalPageAddress) |
| 188 | { |