]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/EmuThunkDxe/EmuThunk.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / EmulatorPkg / EmuThunkDxe / EmuThunk.c
index a0661c8726ea6a3a37a8a481cfdadca935aca2a4..97cdf1697530f46625631a0f6b461292a4f04641 100644 (file)
@@ -2,20 +2,14 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
 #include <PiDxe.h>\r
 \r
 #include <Protocol/DevicePath.h>\r
-#include <Protocol/EmuThunk.h> \r
+#include <Protocol/EmuThunk.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiLib.h>\r
@@ -28,15 +22,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 // EmuThunk Device Path Protocol Instance\r
 //\r
-EMU_THUNK_DEVICE_PATH mEmuThunkDevicePath = {\r
+EMU_THUNK_DEVICE_PATH  mEmuThunkDevicePath = {\r
   {\r
     {\r
       {\r
         HARDWARE_DEVICE_PATH,\r
         HW_VENDOR_DP,\r
         {\r
-          (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),\r
-          (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)\r
+          (UINT8)(sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),\r
+          (UINT8)((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)\r
         }\r
       },\r
       EMU_THUNK_PROTOCOL_GUID\r
@@ -53,13 +47,13 @@ EMU_THUNK_DEVICE_PATH mEmuThunkDevicePath = {
   }\r
 };\r
 \r
-\r
 EFI_STATUS\r
 EFIAPI\r
 InitializeEmuThunk (\r
-  IN EFI_HANDLE                            ImageHandle,\r
-  IN EFI_SYSTEM_TABLE                      *SystemTable\r
+  IN EFI_HANDLE        ImageHandle,\r
+  IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
+\r
 /*++\r
 \r
 Routine Description:\r
@@ -69,7 +63,7 @@ Arguments:
   (Standard EFI Image entry - EFI_IMAGE_ENTRY_POINT)\r
 \r
 Returns:\r
-  EFI_SUCEESS - UnixThunk protocol is added or error status from \r
+  EFI_SUCEESS - UnixThunk protocol is added or error status from\r
                 gBS->InstallMultiProtocolInterfaces().\r
 \r
 **/\r
@@ -80,8 +74,10 @@ Returns:
   Handle = NULL;\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &Handle,\r
-                  &gEmuThunkProtocolGuid,       gEmuThunk,\r
-                  &gEfiDevicePathProtocolGuid,  &mEmuThunkDevicePath,\r
+                  &gEmuThunkProtocolGuid,\r
+                  gEmuThunk,\r
+                  &gEfiDevicePathProtocolGuid,\r
+                  &mEmuThunkDevicePath,\r
                   NULL\r
                   );\r
 \r