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:
Anthony PERARD
2020-04-23 10:53:57 +01:00
committed by mergify[bot]
parent 52f012129a
commit a91443885d
2 changed files with 73 additions and 0 deletions

View File

@@ -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;
}