From: Ard Biesheuvel Date: Mon, 21 Jan 2019 15:05:23 +0000 (+0100) Subject: StandaloneMmPkg/StandaloneMmCoreEntryPoint: drop explicit SerialPortLib call X-Git-Tag: edk2-stable201905~470 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=4b771927c801a873c8b8169b07e77e64d7726198;hp=8edde27a383586d55edf23c7023e1a6d6584a2f1;p=mirror_edk2.git StandaloneMmPkg/StandaloneMmCoreEntryPoint: drop explicit SerialPortLib call Sending DEBUG output to the serial port should only be done via DebugLib calls, which is in charge of initializing the serial port when appropriate. So drop the explicit SerialPortInitialize () invocation, and rely on normal constructor ordering to get the serial port into the appropriate state at the right time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: "Yao, Jiewen" Reviewed-by: Achin Gupta --- diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c index 5cca532456..c8e11a253d 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c @@ -232,9 +232,6 @@ _ModuleEntryPoint ( VOID *TeData; UINTN TeDataSize; - Status = SerialPortInitialize (); - ASSERT_EFI_ERROR (Status); - // Get Secure Partition Manager Version Information Status = GetSpmVersion (); if (EFI_ERROR (Status)) {