Lines Matching defs:Address
59 // Return the address of PML4 (to set CR3)
75 VOID *Address;
80 Address = NULL;
81 Address = AllocatePages (MAX_PF_PAGE_COUNT);
82 ASSERT (Address != NULL);
84 mPFPageBuffer = (UINT64)(UINTN) Address;
95 @param Uplink The address of Page-Directory entry.
103 UINT64 Address;
108 Address = mPFPageBuffer + EFI_PAGES_TO_SIZE (mPFPageIndex);
109 ZeroMem ((VOID *) (UINTN) Address, EFI_PAGE_SIZE);
114 if ((mPFPageUplink[mPFPageIndex] != NULL) && ((*mPFPageUplink[mPFPageIndex] & PHYSICAL_ADDRESS_MASK) == Address)) {
121 *Uplink = Address | PAGE_ATTRIBUTE_BITS;
132 @param PageTable PageTable Address.
133 @param PFAddress The memory address which caused page fault exception.
149 UINT64 Address;
158 // If page fault address is 4GB above.
162 // Check if page fault address has existed in page table.
182 Address = (UINT64)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK);
183 if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 21) - 1)) == ((PFAddress & PHYSICAL_ADDRESS_MASK & ~((1ull << 21) - 1)))) {
196 Address = (UINT64)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK);
197 if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 12) - 1)) == (PFAddress & PHYSICAL_ADDRESS_MASK & ~((1ull << 12) - 1))) {
212 // If page fault address above 4GB is in protected range but it causes a page fault exception,
213 // Will create a page entry for this page fault address, make page table entry as present/rw and execution-disable.
220 // Create one entry in page table for page fault address.
236 Address = PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK;
240 if (IsAddressSplit (Address)) {
246 PageTable[Index] = Address | PAGE_ATTRIBUTE_BITS;
247 if (!IsAddressValid (Address, &Nx)) {
253 if (Address == (PFAddress & PHYSICAL_ADDRESS_MASK & ~((1ull << 12) - 1))) {
256 Address += SIZE_4KB;
262 if (!IsAddressValid (Address, &Nx)) {