\r
while (CurrentLink != StartLink) {\r
CurrentTableList = EFI_ACPI_TABLE_LIST_FROM_LINK (CurrentLink);\r
- if (((UINTN)CurrentTableList->PageAddress <= (UINTN)Buffer) &&\r
- ((UINTN)CurrentTableList->PageAddress + EFI_PAGES_TO_SIZE(CurrentTableList->NumberOfPages) > (UINTN)Buffer)) {\r
+ if (((UINTN)CurrentTableList->Table <= (UINTN)Buffer) &&\r
+ ((UINTN)CurrentTableList->Table + CurrentTableList->TableSize > (UINTN)Buffer)) {\r
//\r
// Good! Found Table.\r
//\r