]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StandaloneMmPkg: Fix ECC error 4002 in StandaloneMmCpu
authorSami Mujawar <sami.mujawar@arm.com>
Mon, 7 Dec 2020 12:25:36 +0000 (12:25 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 11:13:39 +0000 (11:13 +0000)
Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150)

Fix the ECC reported error "[4002] Function header doesn't exist".

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c

index 2313d3f9b310c559c907a25d60f3592ca733f82e..03e887d777ea0ca67b323dc5dfcab8249d5e7f42 100644 (file)
@@ -58,6 +58,19 @@ EFI_MM_CONFIGURATION_PROTOCOL mMmConfig = {
 \r
 STATIC EFI_MM_ENTRY_POINT     mMmEntryPoint = NULL;\r
 \r
+/**\r
+  The PI Standalone MM entry point for the TF-A CPU driver.\r
+\r
+  @param  [in] EventId            The event Id.\r
+  @param  [in] CpuNumber          The CPU number.\r
+  @param  [in] NsCommBufferAddr   Address of the NS common buffer.\r
+\r
+  @retval   EFI_SUCCESS             Success.\r
+  @retval   EFI_INVALID_PARAMETER   A parameter was invalid.\r
+  @retval   EFI_ACCESS_DENIED       Access not permitted.\r
+  @retval   EFI_OUT_OF_RESOURCES    Out of resources.\r
+  @retval   EFI_UNSUPPORTED         Operation not supported.\r
+**/\r
 EFI_STATUS\r
 PiMmStandaloneArmTfCpuDriverEntry (\r
   IN UINTN EventId,\r
@@ -159,6 +172,14 @@ PiMmStandaloneArmTfCpuDriverEntry (
   return Status;\r
 }\r
 \r
+/**\r
+  Registers the MM foundation entry point.\r
+\r
+  @param  [in] This               Pointer to the MM Configuration protocol.\r
+  @param  [in] MmEntryPoint       Function pointer to the MM Entry point.\r
+\r
+  @retval   EFI_SUCCESS             Success.\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 MmFoundationEntryRegister (\r