ShellPkg/UefiShellAcpiViewCommandLib: Fix PPTT cache attributes validation
Removed conditional pre-compiling for ARM CPUs because function ValidateCacheAttributes(..) is based on ACPI PPTT specification. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com> Reported-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Bi Dandan <dandan.bi@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
committed by
Jaben Carsey
parent
8da8daafc9
commit
1887b995a3
@ -80,11 +80,9 @@ ValidateCacheAttributes (
|
|||||||
IN VOID* Context
|
IN VOID* Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if defined(MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)
|
|
||||||
// Reference: Advanced Configuration and Power Interface (ACPI) Specification
|
// Reference: Advanced Configuration and Power Interface (ACPI) Specification
|
||||||
// Version 6.2 Errata A, September 2017
|
// Version 6.2 Errata A, September 2017
|
||||||
// Table 5-153: Cache Type Structure
|
// Table 5-153: Cache Type Structure
|
||||||
|
|
||||||
UINT8 Attributes;
|
UINT8 Attributes;
|
||||||
Attributes = *(UINT8*)Ptr;
|
Attributes = *(UINT8*)Ptr;
|
||||||
|
|
||||||
@ -96,7 +94,6 @@ ValidateCacheAttributes (
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user