mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
OvmfPkg: RiscVVirt: Add missing SerialPortInitialize to Sec
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>
This commit is contained in:
parent
45da4e3135
commit
0abfb0be6c
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
RISC-V SEC phase module for Qemu Virt.
|
||||
|
||||
Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2008 - 2023, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
@ -57,6 +57,8 @@ SecStartup (
|
||||
UINT64 StackBase;
|
||||
UINT32 StackSize;
|
||||
|
||||
SerialPortInitialize ();
|
||||
|
||||
//
|
||||
// Report Status Code to indicate entering SEC core
|
||||
//
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <Library/PrePiLib.h>
|
||||
#include <Library/PlatformInitLib.h>
|
||||
#include <Library/PrePiHobListPointerLib.h>
|
||||
#include <Library/SerialPortLib.h>
|
||||
#include <Register/RiscV64/RiscVImpl.h>
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,7 @@
|
||||
FdtLib
|
||||
MemoryAllocationLib
|
||||
HobLib
|
||||
SerialPortLib
|
||||
|
||||
[Ppis]
|
||||
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED
|
||||
|
Loading…
x
Reference in New Issue
Block a user