]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Dsdt/DsdtParser.c
ShellPkg: Add revision check for DSDT Header on Arm
authorEdward Pickup <edward.pickup@arm.com>
Wed, 20 Jul 2022 08:59:49 +0000 (16:59 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 24 Aug 2022 03:14:52 +0000 (03:14 +0000)
commit4d83ee04f44a8dc9e6425a719b39c9d378730ca1
treebd4736908a1839633b18ebb6f9afcf8510823d9d
parentdfdba857a6b6a708e754ddb1a04086a3402acdef
ShellPkg: Add revision check for DSDT Header on Arm

Bugzilla: 3995 (https://bugzilla.tianocore.org/show_bug.cgi?id=3995)

ACPI 6.4 spec states that if the revision field in the DSDT header is less
than 2, then all integers are restricted in width to 32 bits, including in
SSDTs.

Arm Base boot requirements state that platforms must conform to ACPI 6.3
or later, and that legacy tables are not supported.

Adds a check for this field and raise warning if revision is less
than 2 on arm.

Signed-off-by: Edward Pickup <edward.pickup@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Dsdt/DsdtParser.c