22 lines
377 B
C++
22 lines
377 B
C++
//
|
|
// Created by rhinemann on 10.03.25.
|
|
//
|
|
|
|
#ifndef PHYSICALPAGE_H
|
|
#define PHYSICALPAGE_H
|
|
|
|
#include "PageTable.h"
|
|
|
|
class PhysicalPage {
|
|
public:
|
|
unsigned int PPN, idx;
|
|
PageTable *PT;
|
|
PhysicalPage *next[2], *prev[2];
|
|
|
|
explicit PhysicalPage(unsigned int PPN);
|
|
|
|
void take_up(PageTable *PT, unsigned int idx);
|
|
};
|
|
|
|
#endif //PHYSICALPAGE_H
|