11 lines
255 B
C++
11 lines
255 B
C++
#include "PhysicalPage.h"
|
|
|
|
PhysicalPage::PhysicalPage(const unsigned int PPN)
|
|
: PPN(PPN), idx(0), PT{nullptr}, next{nullptr}, prev(nullptr) {
|
|
}
|
|
|
|
void PhysicalPage::take_up(PageTable *PT, const unsigned int idx) {
|
|
this->idx = idx;
|
|
this->PT = PT;
|
|
}
|