From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.69]) by mx.groups.io with SMTP id smtpd.web08.14265.1633016489648936948 for ; Thu, 30 Sep 2021 08:41:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=Tlymo087; spf=pass (domain: arm.com, ip: 40.107.20.69, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oe3QFD1p6Rl6T//lsPDmuzBKqhrYWgZSj5ILNUkC1gE=; b=Tlymo087WSNlWBLa6G+LtL3kloc1V1T/nbFGfPtKjAo3/B+eBe7OxPRhJRMIqk0tIAAUMih1YNTeI6BFNkSdp8m+0/hqb1POenRAdVfJBwo0VrizWOEFMOWYz7qxbasGZYoYU5wIYgLX8toKRvEQeBz1Kw9Xa2G6FJdxb2+hTa0= Received: from DU2PR04CA0330.eurprd04.prod.outlook.com (2603:10a6:10:2b5::35) by HE1PR0801MB2028.eurprd08.prod.outlook.com (2603:10a6:3:56::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Thu, 30 Sep 2021 15:41:27 +0000 Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b5:cafe::a2) by DU2PR04CA0330.outlook.office365.com (2603:10a6:10:2b5::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15 via Frontend Transport; Thu, 30 Sep 2021 15:41:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.33.187.114) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.33.187.114 as permitted sender) receiver=protection.outlook.com; client-ip=63.33.187.114; helo=64aa7808-outbound-2.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-2.mta.getcheckrecipient.com (63.33.187.114) by DB5EUR03FT038.mail.protection.outlook.com (10.152.21.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 15:41:26 +0000 Received: ("Tessian outbound 0e48c0de19a3:v103"); Thu, 30 Sep 2021 15:41:26 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 19ee1c93765cec6c X-CR-MTA-TID: 64aa7808 Received: from 3acd4f47e4b4.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4EDC5F84-BA7C-42CF-AF88-A50482B18AC5.1; Thu, 30 Sep 2021 15:41:16 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3acd4f47e4b4.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 30 Sep 2021 15:41:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eYPTvFI19EspOyFsgC8WTHeumcPLnGAlK2eWqu18KTd65W5ZR75whp4o730t0YUXfsGYYJKWxTrT6+rP4cezfqTqvQ3aj3Ht7Q3uiJ7vHUkYwmknOB+xhjGlK0k+VfZXT0rdt3JkrVDsPP4UbavOH1PZZbqWztnijceND+MApc93hHbpI9VUgxfPuzUuCBt77MldcWhQflTz1ABDiz+n6BqRwOfQpMiO0QoDV+TDossG/IUedUmkAZxvFWZM4TKti+ehya/bp//vvkuorRamqLGp5ZrlwQ4OS6HJlf1dVzVtPCr1OSHugVolTK+oDQ+zC56b/MlhEuwKTFTeVVqMrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Oe3QFD1p6Rl6T//lsPDmuzBKqhrYWgZSj5ILNUkC1gE=; b=Vg1TNMFaU4/ob/zzCFO8xjQaYsjaIuqcE73kbYUqjCVZJSIgNDbYV2QkKU/TfK1kiei1SBuUwrGOm79jJEsfU5aB1TfOKOCjV9RyciURTZa9sYMi6e4eqx20APm7anyzY9eR+7L6ISDWq7onM1UU+i/hXuMKsEVsKRXz+B8tjZxKY+stwHfy07I61fqu+MF7hZJrnFIeXmTLgPEGiPEGPajt3iQJb60I/SxeMCzMUfGiUytnKKPC7oVYrBDboETgQwR67aWWOdgez6ewTKhBCVs4JwE2ABvLA6aEUdWi5lhTZzVRfq465d1nOz7IfKXP/fPUlqn+OdcFXk6gwaJpmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oe3QFD1p6Rl6T//lsPDmuzBKqhrYWgZSj5ILNUkC1gE=; b=Tlymo087WSNlWBLa6G+LtL3kloc1V1T/nbFGfPtKjAo3/B+eBe7OxPRhJRMIqk0tIAAUMih1YNTeI6BFNkSdp8m+0/hqb1POenRAdVfJBwo0VrizWOEFMOWYz7qxbasGZYoYU5wIYgLX8toKRvEQeBz1Kw9Xa2G6FJdxb2+hTa0= Received: from AM6P192CA0047.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::24) by PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Thu, 30 Sep 2021 15:41:14 +0000 Received: from VE1EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:82:cafe::ef) by AM6P192CA0047.outlook.office365.com (2603:10a6:209:82::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.16 via Frontend Transport; Thu, 30 Sep 2021 15:41:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT018.mail.protection.outlook.com (10.152.18.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 15:41:14 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.14; Thu, 30 Sep 2021 15:40:49 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 30 Sep 2021 15:40:45 +0000 Received: from E114225.Arm.com (10.1.196.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.14 via Frontend Transport; Thu, 30 Sep 2021 15:40:48 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , , , Subject: [PATCH v1 4/9] MdePkg: Add definition for NULL GUID Date: Thu, 30 Sep 2021 16:40:39 +0100 Message-ID: <20210930154044.37336-5-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20210930154044.37336-1-sami.mujawar@arm.com> References: <20210930154044.37336-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 433a103c-4ea8-4681-0b12-08d98428c3c5 X-MS-TrafficTypeDiagnostic: PAXPR08MB6640:|HE1PR0801MB2028: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:2958;OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: TatynPB48cup5ot2kxi7uzn1yufd7FPloBJDuf+TiQDMhedNq06ohC7BtFUr2gX7donPDruiHYE9pdmjNoLAf54gWYSEzLn7ITLRpKwxrtIGQ6deE+T8upvIogeP2O9KCpPA1v02/16vpRHk8oG/TD18d1GyDIQ0o8+oL6mZDN65L5E11jP+FmJ/UCSWfJHzyhRFLuqBm2uK1ezIj7hs9xNzbs4p874XZwNsdpc1IzTlhSdLIJfB5wHE+wwRrtpwOMIuD6K2PF5fxLCi172dxGMTMChyB2tk1EMGU2hMiJqhREA4r4ZF+67fyuj5bQxyrT4qDayhBHS0LudtqeduvC+6IZ+Mpj4CEJOvD5rjI6i8W5OnpDBN5wylr4oMHzPJAAXbWHU2V3z4FzRTwK4qNqJSPGmRbcgnkm9oAnw5sdg6eZcNqeGsaQr5KuDyMj88wb35gaiY3WEgL7rTP1HLhxdhidN4CUm+fc83RrWg0W8SoIV9NZe10hc31Jmh3NZyc7oQd5Typ+zvGXxjMjCVfeh5RmAMPFbVLpFxrNfD51nP5Somwjh23CW+OItE80S/E/iChQaBbt6mOjI7cvZpbMt+l6AqyCtmrlZ/PSMoLS19J+QiI64QqduoJkb+4YjZkPzqWLhn9yQ+D1xEG6QEC1h20nqvu8cEXotZ1ndxwU8t5KIWliksHx7EAW6SXI2wFy2m2ZuO4etMxcdmGkbCSByeNNo7wadfNbpaRvu8Qxm5ctXTAqD+nZzsyE3hrydhWHpDGNjwfvvCfAmRpQzgdtf8pDh3F9Wo1ziluTyMU3IzpjdnXAT+hCoM7tyXH7+g X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(5660300002)(4326008)(186003)(316002)(7416002)(54906003)(44832011)(86362001)(2906002)(356005)(8936002)(36756003)(8676002)(81166007)(7696005)(47076005)(83380400001)(1076003)(70206006)(36860700001)(2616005)(426003)(6916009)(70586007)(26005)(508600001)(82310400003)(19627235002)(336012)(6666004)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6640 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 75044d4f-75cb-4c3a-d82e-08d98428bc55 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A5aVddJ54ByyrYCq9uDCB+dICjOVtI9Y5AuBdbB6jPL3J/m4GL5StSqOmdwWqBgQl1WdgMBrSc8M3R/ETN4IU2vGqYNcdD3hlPdVg4m9GOZZgLxfFxyd3Tl9ICa6c2Jphy+PdXm2pIXzySBMloIblsBfd7mj6g8COpEDhpg977jtLBDejo9/N5Q+sWKuUMXcO+4BF8qnro2NFoYW+TB2BbNtxcSdh4VxtUhHooUDuXBT0PIExVY1WvRlQmcg/EdlngkN8dBr9odKS1WBawz9L2Uc8SRUWKZTLOeNmvjLzLdYRfjxX/fRKLYIYAhU15jRDgqzQD8MldLDGYboRT9hVdaM0B10z+7HyAyUKUmiLa40PcZqd8jUxAAe5FvcMLWnWL4fFyk9JhtNfBDCtMtOKyuMTR3wurNbOCojC0ourOfrCZh+WnGwY1kk9a5srcWKgOtnJmdQl7+YNHI+Kp2naM43rQ9BM91k4dzQcMuarYgrqJdrWU5gPFeYxMWnEuqEoF+vII3iKgOYZv5OZOJyi8YdvdFPJPr0Y2j3G8hL8wbG4Fo7vCzH7CtVp2XorxRAoAxJynNV0Qe4sL2HAQSoPB9JfXkgtyqGg/yzl+4Rzd9nph4k9ocWMYRL0058NR/091ipO56o/Sxf7VEOmNAgAL6SXYQwlGR3km8pJbcjU6QWDydCiy9AdvZOuq/b+5twXya9fmkhTkeHF1NfZLfKrKO4ez3Z0lZXmc3Jot3KdRcewuvNoRZo6+oExFrPC22kaNwGH5f6wxSoCW+/pKUwpoPj6rL+enaOQbiH1HFrl9E= X-Forefront-Antispam-Report: CIP:63.33.187.114;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-2.mta.getcheckrecipient.com;PTR:ec2-63-33-187-114.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(86362001)(70206006)(8936002)(26005)(82310400003)(70586007)(426003)(83380400001)(186003)(2616005)(7696005)(336012)(1076003)(8676002)(4326008)(19627235002)(5660300002)(6666004)(36860700001)(36756003)(508600001)(6916009)(44832011)(2906002)(54906003)(47076005)(81166007)(316002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 15:41:26.7584 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 433a103c-4ea8-4681-0b12-08d98428c3c5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.33.187.114];Helo=[64aa7808-outbound-2.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2028 Content-Type: text/plain Bugzilla: 3668 (https://bugzilla.tianocore.org/show_bug.cgi?id=3668) Some PCDs e.g. PcdCpuRngSupportedAlgorithm are defined as GUIDs and may be initialised as NULL (all zeros) by default. Therefore, define a NULL GUID (128 bit zeros), so that it can be used for comparison using CompareGuid(). Signed-off-by: Sami Mujawar --- MdePkg/Include/Guid/NullGuid.h | 21 ++++++++++++++++++++ MdePkg/MdePkg.dec | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/MdePkg/Include/Guid/NullGuid.h b/MdePkg/Include/Guid/NullGuid.h new file mode 100644 index 0000000000000000000000000000000000000000..e44a92c7863f0573ce10d6d98e4a67e3d63f5743 --- /dev/null +++ b/MdePkg/Include/Guid/NullGuid.h @@ -0,0 +1,21 @@ +/** @file + Definition of a NULL GUID. + + Copyright (c) 2021, Arm Limited. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef NULL_GUID_H_ +#define NULL_GUID_H_ + +// {00000000-0000-0000-0000-000000000000} +#define NULL_GUID \ + { \ + 0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } \ + } + +extern EFI_GUID gNullGuid; + +#endif // NULL_GUID_H_ diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 492c3c3fd83e632dbf902bd8093b7d5e62597433..dcdccf2b68b58536b84f1c360ef048ca8f2f1690 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -828,6 +828,12 @@ [Guids] # gLinuxEfiInitrdMediaGuid = {0x5568e427, 0x68fc, 0x4f3d, {0xac, 0x74, 0xca, 0x55, 0x52, 0x31, 0xcc, 0x68}} + # + # Definition of a NULL GUID + # + ## Include/Guid/NullGuid.h + gNullGuid = { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }} + [Guids.IA32, Guids.X64] ## Include/Guid/Cper.h gEfiIa32X64ErrorTypeCacheCheckGuid = { 0xA55701F5, 0xE3EF, 0x43de, { 0xAC, 0x72, 0x24, 0x9B, 0x57, 0x3F, 0xAD, 0x2C }} -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'