2025-03-31 17:19:43 +03:00
|
|
|
#include "PageTable.h"
|
|
|
|
|
2025-04-01 14:10:01 +03:00
|
|
|
PageTable::PageTable(const unsigned int entry_num) {
|
|
|
|
entries.reserve(entry_num);
|
|
|
|
for (int i = 0; i < entry_num; ++i) {
|
|
|
|
entries.emplace_back();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-03-31 22:20:01 +03:00
|
|
|
PTE &PageTable::operator[](const unsigned int index) {
|
2025-03-31 17:19:43 +03:00
|
|
|
return this->entries.at(index);
|
|
|
|
}
|