#include "PageMapIndexer.h"

PageMapIndexer::PageMapIndexer(uint64_t virtualAddress) {
	virtualAddress >>= 12; // 4096 aligned
	P_i = virtualAddress & 0x1FF;
	virtualAddress >>= 9;
	PT_i = virtualAddress & 0x1FF;
	virtualAddress >>= 9;
	PD_i = virtualAddress & 0x1FF;
	virtualAddress >>= 9;
	PDP_i = virtualAddress & 0x1FF;
}