mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
ec16deeac9
commit
5ce6fb99d4
@ -1230,6 +1230,11 @@ ScanTableInSDT (
|
||||
//
|
||||
Table = 0;
|
||||
CopyMem (&Table, (VOID *) (EntryBase + Index * TablePointerSize), TablePointerSize);
|
||||
|
||||
if (Table == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (Table->Signature == Signature) {
|
||||
return Table;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user