mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformDebugLibIoPort: Introduce a Nocheck variant
Introduce PlatformRomDebugLibIoPortNocheck which doesn't try to detect the debug IO port. Instead, debug logs are always written to the IO port. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Message-Id: <20200423095358.2518197-5-anthony.perard@citrix.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
52f012129a
commit
a91443885d
OvmfPkg/Library/PlatformDebugLibIoPort
|
@ -0,0 +1,25 @@
|
|||
/** @file
|
||||
Dectection code for hypervisor debug port.
|
||||
|
||||
Copyright (c) 2020, Citrix Systems, Inc.
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#include "DebugLibDetect.h"
|
||||
|
||||
/**
|
||||
Always return TRUE without detection as the debug I/O port is always
|
||||
present.
|
||||
|
||||
@retval TRUE The debug I/O port is always present.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
PlatformDebugLibIoPortDetect (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
## @file
|
||||
# Instance of Debug Library for an hypervisor debug console port.
|
||||
# It uses Print Library to produce formatted output strings.
|
||||
#
|
||||
# Copyright (c) 2020, Citrix Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = PlatformRomDebugLibIoPortNocheck
|
||||
FILE_GUID = 92AEB68E-C2CF-466E-9AB2-3F5E713F7DE6
|
||||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = DebugLib
|
||||
CONSTRUCTOR = PlatformRomDebugLibIoPortConstructor
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 EBC
|
||||
#
|
||||
|
||||
[Sources]
|
||||
DebugIoPortNocheck.c
|
||||
DebugLib.c
|
||||
DebugLibDetect.h
|
||||
DebugLibDetectRom.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
OvmfPkg/OvmfPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseMemoryLib
|
||||
IoLib
|
||||
PcdLib
|
||||
PrintLib
|
||||
BaseLib
|
||||
DebugPrintErrorLevelLib
|
||||
|
||||
[Pcd]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel ## CONSUMES
|
||||
|
Loading…
Reference in New Issue