If the SerialPortLib had any initialization needed, this
would be skipped in the RiscVVirt Sec. Follow the example
seen elsewhere (ArmVirtPkg PrePi).
Seen with BaseSerialPortLibRiscVSbiLibRam not using DBCN in Sec,
yet using DBCN elsewhere.
Cc: Daniel Schaefer <git@danielschaefer.me>
Signed-off-by: Andrei Warkentin <andrei.warkentin@intel.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
/** @file\r
RISC-V SEC phase module for Qemu Virt.\r
\r
- Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>\r
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
UINT64 StackBase;\r
UINT32 StackSize;\r
\r
+ SerialPortInitialize ();\r
+\r
//\r
// Report Status Code to indicate entering SEC core\r
//\r
#include <Library/PrePiLib.h>\r
#include <Library/PlatformInitLib.h>\r
#include <Library/PrePiHobListPointerLib.h>\r
+#include <Library/SerialPortLib.h>\r
#include <Register/RiscV64/RiscVImpl.h>\r
\r
/**\r
FdtLib\r
MemoryAllocationLib\r
HobLib\r
+ SerialPortLib\r
\r
[Ppis]\r
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED\r