TianoCore EDK2 master
Loading...
Searching...
No Matches
DsdtParser.c
Go to the documentation of this file.
1
12#include <Library/UefiLib.h>
13#include "AcpiParser.h"
14#include "AcpiTableParser.h"
15
28VOID
29EFIAPI
31 IN BOOLEAN Trace,
32 IN UINT8 *Ptr,
33 IN UINT32 AcpiTableLength,
34 IN UINT8 AcpiTableRevision
35 )
36{
37 if (!Trace) {
38 return;
39 }
40
41 DumpAcpiHeader (Ptr);
42
43 // As per 19.6.29 in the version 6.4 of the ACPI spec, a revision less than 2
44 // restricts integers to 32 bit width. This may not be intended, raise a
45 // warning
46 #if defined (MDE_CPU_AARCH64) || defined (MDE_CPU_ARM)
47 if (AcpiTableRevision < 2) {
49 Print (
50 L"WARNING: DSDT Table Revision less than 2. Integer width restricted to "
51 L"32 bits. Table Revision = %d.\n",
52 AcpiTableRevision
53 );
54 return;
55 }
56
57 #endif
58}
VOID EFIAPI IncrementWarningCount(VOID)
Definition: AcpiParser.c:95
UINT32 EFIAPI DumpAcpiHeader(IN UINT8 *Ptr)
Definition: AcpiParser.c:885
VOID EFIAPI ParseAcpiDsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: DsdtParser.c:30
#define IN
Definition: Base.h:279
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
Definition: UefiLibPrint.c:113