mirror of https://github.com/acidanthera/audk.git
DynamicTablesPkg: TokenFixer: Return Non Arm NS objs as unsupported
Update the Token Fixer to return objects other than Arm Namespace objects as unsupported. Cc: Pierre Gondois <Pierre.Gondois@arm.com> Cc: Yeo Reum Yun <YeoReum.Yun@arm.com> Cc: AbdulLateef Attar <AbdulLateef.Attar@amd.com> Cc: Jeshua Smith <jeshuas@nvidia.com> Cc: Jeff Brasen <jbrasen@nvidia.com> Cc: Girish Mahadevan <gmahadevan@nvidia.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
parent
af337d1291
commit
3c2d524ceb
|
@ -209,14 +209,17 @@ FixupCmObjectSelfToken (
|
|||
CM_OBJECT_TOKEN_FIXER TokenFixerFunc;
|
||||
CM_OBJECT_ID ArmNamespaceObjId;
|
||||
|
||||
// Only support Arm objects for now.
|
||||
if ((CmObjDesc == NULL) ||
|
||||
(GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) != EObjNameSpaceArm))
|
||||
{
|
||||
if (CmObjDesc == NULL) {
|
||||
ASSERT (0);
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
// Only support Arm objects for now.
|
||||
if (GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) != EObjNameSpaceArm) {
|
||||
ASSERT (0);
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
ArmNamespaceObjId = GET_CM_OBJECT_ID (CmObjDesc->ObjectId);
|
||||
if (ArmNamespaceObjId >= EArmObjMax) {
|
||||
ASSERT (0);
|
||||
|
|
Loading…
Reference in New Issue