summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c
diff options
context:
space:
mode:
authorKrzysztof Koch <krzysztof.koch@arm.com>2020-01-20 19:13:45 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-11 02:12:45 +0000
commiteb9db72ca867bbe833aaea69178b5a01b686d9bd (patch)
tree73c80a6695b2d2ab70796f8f28f97f1e92b8e9e3 /ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c
parenta4826c8664f98a40fc7384107639971a93598fb3 (diff)
downloadedk2-eb9db72ca867bbe833aaea69178b5a01b686d9bd.tar.gz
edk2-eb9db72ca867bbe833aaea69178b5a01b686d9bd.tar.bz2
edk2-eb9db72ca867bbe833aaea69178b5a01b686d9bd.zip
ShellPkg: acpiview: SLIT: Validate System Locality count
1. Check if the 'Number of System Localities' provided can be represented in the SLIT table. The table 'Length' field is a 32-bit value while the 'Number of System Localities' field is 64-bit long. 2. Check if the SLIT matrix fits in the table buffer. If N is the SLIT locality count, then the matrix used to represent the localities is N*N bytes long. The ACPI table length must be big enough to fit the matrix. 3. Remove (now) redundant 64x64 bit multiplication. Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c')
0 files changed, 0 insertions, 0 deletions