]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Library / PlatformDebugLibIoPort / DebugLibDetect.c
index e24cc834c2a3c40214a75ef9fe68e2e96d679005..45207faf5cb2fd8af5547aa94b793df18cbe9651 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
-  Detection code for QEMU debug port.\r
+  Detection code for hypervisor debug port.\r
   Non-SEC instance, caches the result of detection.\r
 \r
   Copyright (c) 2017, Red Hat, Inc.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 //\r
 // Set to TRUE if the debug I/O port has been checked\r
 //\r
-STATIC BOOLEAN mDebugIoPortChecked = FALSE;\r
+STATIC BOOLEAN  mDebugIoPortChecked = FALSE;\r
 \r
 //\r
 // Set to TRUE if the debug I/O port is enabled\r
 //\r
-STATIC BOOLEAN mDebugIoPortFound = FALSE;\r
+STATIC BOOLEAN  mDebugIoPortFound = FALSE;\r
 \r
 /**\r
   This constructor function must not do anything.\r
@@ -64,8 +58,9 @@ PlatformDebugLibIoPortFound (
   )\r
 {\r
   if (!mDebugIoPortChecked) {\r
-    mDebugIoPortFound = PlatformDebugLibIoPortDetect ();\r
+    mDebugIoPortFound   = PlatformDebugLibIoPortDetect ();\r
     mDebugIoPortChecked = TRUE;\r
   }\r
+\r
   return mDebugIoPortFound;\r
 }\r