Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiTableParser.c
- Timestamp:
- Aug 12, 2020 4:09:12 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139865
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiTableParser.c
r80721 r85718 2 2 ACPI table parser 3 3 4 Copyright (c) 2016 - 20 19, ARM Limited. All rights reserved.4 Copyright (c) 2016 - 2020, ARM Limited. All rights reserved. 5 5 SPDX-License-Identifier: BSD-2-Clause-Patent 6 7 @par Glossary: 8 - Sbbr or SBBR - Server Base Boot Requirements 9 10 @par Reference(s): 11 - Arm Server Base Boot Requirements 1.2, September 2019 6 12 **/ 7 13 … … 13 19 #include "AcpiView.h" 14 20 21 #if defined(MDE_CPU_ARM) || defined (MDE_CPU_AARCH64) 22 #include "Arm/SbbrValidator.h" 23 #endif 24 15 25 /** 16 26 A list of registered ACPI table parsers. … … 177 187 CONST UINT32* AcpiTableLength; 178 188 CONST UINT8* AcpiTableRevision; 189 CONST UINT8* SignaturePtr; 179 190 PARSE_ACPI_TABLE_PROC ParserProc; 180 191 … … 194 205 if (Trace) { 195 206 DumpRaw (Ptr, *AcpiTableLength); 207 208 // Do not process the ACPI table any further if the table length read 209 // is invalid. The ACPI table should at least contain the table header. 210 if (*AcpiTableLength < sizeof (EFI_ACPI_DESCRIPTION_HEADER)) { 211 SignaturePtr = (CONST UINT8*)AcpiTableSignature; 212 IncrementErrorCount (); 213 Print ( 214 L"ERROR: Invalid %c%c%c%c table length. Length = %d\n", 215 SignaturePtr[0], 216 SignaturePtr[1], 217 SignaturePtr[2], 218 SignaturePtr[3], 219 *AcpiTableLength 220 ); 221 return; 222 } 223 196 224 if (GetConsistencyChecking ()) { 197 225 VerifyChecksum (TRUE, Ptr, *AcpiTableLength); 198 226 } 199 227 } 228 229 #if defined(MDE_CPU_ARM) || defined (MDE_CPU_AARCH64) 230 if (GetMandatoryTableValidate ()) { 231 ArmSbbrIncrementTableCount (*AcpiTableSignature); 232 } 233 #endif 200 234 201 235 Status = GetParser (*AcpiTableSignature, &ParserProc);
Note:
See TracChangeset
for help on using the changeset viewer.