| 209 | } |
| 210 | |
| 211 | int MemoryManager::allocateVirtualPages(enum AddressPoolType type, const int count) |
| 212 | { |
| 213 | int start = -1; |
| 214 | |
| 215 | if (type == AddressPoolType::KERNEL) |
| 216 | { |
| 217 | start = kernelVirtual.allocate(count); |
| 218 | } |
| 219 | |
| 220 | return (start == -1) ? 0 : start; |
| 221 | } |
| 222 | |
| 223 | bool MemoryManager::connectPhysicalVirtualPage(const int virtualAddress, const int physicalPageAddress) |
| 224 | { |