summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
diff options
context:
space:
mode:
authorMarvin.Haeuser@outlook.com <Marvin.Haeuser@outlook.com>2018-05-05 22:24:50 +0800
committerLiming Gao <liming.gao@intel.com>2018-05-17 15:22:07 +0800
commitced8f52fc66912847cbccbe631905e279d3b3941 (patch)
tree99117c4152b212cffe4f6d1befafff968376dada /MdePkg/Library/PeiServicesLib/PeiServicesLib.c
parent4b8067392d2db5efe73f4567fde25c29e02080cc (diff)
downloadedk2-ced8f52fc66912847cbccbe631905e279d3b3941.tar.gz
edk2-ced8f52fc66912847cbccbe631905e279d3b3941.tar.bz2
edk2-ced8f52fc66912847cbccbe631905e279d3b3941.zip
MdePkg/PeiServicesLib: Decorate 'PpiDescriptor' as OPTIONAL for LocatePpi().
The UEFI PI specification defines PpiDescriptor to be OPTIONAL for the LocatePpi PEI Service. This patch reflects this in the function declaration and definition of the corresponding PeiServices library function. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/PeiServicesLib/PeiServicesLib.c')
-rw-r--r--MdePkg/Library/PeiServicesLib/PeiServicesLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
index d0838ed709..881b9cd52e 100644
--- a/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
+++ b/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
@@ -1,7 +1,7 @@
/** @file
Implementation for PEI Services Library.
- Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -95,7 +95,7 @@ EFIAPI
PeiServicesLocatePpi (
IN CONST EFI_GUID *Guid,
IN UINTN Instance,
- IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,
+ IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, OPTIONAL
IN OUT VOID **Ppi
)
{