summaryrefslogtreecommitdiff
path: root/StandaloneMmPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-01-21 16:05:23 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-03-11 12:51:12 +0100
commit4b771927c801a873c8b8169b07e77e64d7726198 (patch)
tree9b3a6b579fa752c2257aaa2449dbbb7adaf04805 /StandaloneMmPkg
parent8edde27a383586d55edf23c7023e1a6d6584a2f1 (diff)
downloadedk2-4b771927c801a873c8b8169b07e77e64d7726198.zip
edk2-4b771927c801a873c8b8169b07e77e64d7726198.tar.gz
edk2-4b771927c801a873c8b8169b07e77e64d7726198.tar.bz2
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 <ard.biesheuvel@linaro.org> Reviewed-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: Achin Gupta <achin.gupta@arm.com>
Diffstat (limited to 'StandaloneMmPkg')
-rw-r--r--StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c
index 5cca532..c8e11a2 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)) {