PcAtChipsetPkg/PcRtc: Handle NULL table entry in RSDT/XSDT

The ACPI code may reserve the first entry for a certain table
(might be FACS) to help with OS compatible issues.
We need to skip the NULL table entry in RSDT/XSDT.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
Ruiyu Ni 2016-11-14 13:25:54 +08:00
parent ec16deeac9
commit 5ce6fb99d4
1 changed files with 5 additions and 0 deletions

View File

@ -1230,6 +1230,11 @@ ScanTableInSDT (
//
Table = 0;
CopyMem (&Table, (VOID *) (EntryBase + Index * TablePointerSize), TablePointerSize);
if (Table == NULL) {
continue;
}
if (Table->Signature == Signature) {
return Table;
}