]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/DebugSupport.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / DebugSupport.h
index 8e5c5b85b988e3c4472699b1522968f86d854397..cf12a2a6e8c2a8097dcc2d2228058930e28ca855 100644 (file)
@@ -2,13 +2,7 @@
   Generic debug support macros, typedefs and prototypes for IA32/x64.\r
 \r
 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<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
@@ -27,8 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/BaseLib.h>\r
 \r
-#define NUM_IDT_ENTRIES                 0x78\r
-#define SYSTEM_TIMER_VECTOR             0x68\r
+#define NUM_IDT_ENTRIES      0x78\r
+#define SYSTEM_TIMER_VECTOR  0x68\r
 \r
 typedef\r
 VOID\r
@@ -38,20 +32,22 @@ VOID
 \r
 typedef\r
 VOID\r
-(EFIAPI *CALLBACK_FUNC) (\r
+(EFIAPI *CALLBACK_FUNC)(\r
   );\r
 \r
 typedef struct {\r
-  IA32_IDT_GATE_DESCRIPTOR  OrigDesc;\r
-  DEBUG_PROC                OrigVector;\r
-  IA32_IDT_GATE_DESCRIPTOR  NewDesc;\r
-  DEBUG_PROC                StubEntry;\r
-  CALLBACK_FUNC             RegisteredCallback;\r
+  IA32_IDT_GATE_DESCRIPTOR    OrigDesc;\r
+  DEBUG_PROC                  OrigVector;\r
+  IA32_IDT_GATE_DESCRIPTOR    NewDesc;\r
+  DEBUG_PROC                  StubEntry;\r
+  CALLBACK_FUNC               RegisteredCallback;\r
 } IDT_ENTRY;\r
 \r
-extern UINT8                     InterruptEntryStub[];\r
-extern UINT32                    StubSize;\r
-extern VOID                      (*OrigVector) (VOID);\r
+extern UINT8   InterruptEntryStub[];\r
+extern UINT32  StubSize;\r
+extern VOID    (*OrigVector) (\r
+  VOID\r
+  );\r
 extern IDT_ENTRY                 *IdtEntryTable;\r
 extern IA32_IDT_GATE_DESCRIPTOR  NullDesc;\r
 \r
@@ -85,8 +81,8 @@ FxStorSupport (
 **/\r
 VOID\r
 Vect2Desc (\r
-  IA32_IDT_GATE_DESCRIPTOR DestDesc,\r
-  VOID (*Vector) (VOID)\r
+  IA32_IDT_GATE_DESCRIPTOR  *DestDesc,\r
+  VOID (                    *Vector )(VOID)\r
   );\r
 \r
 /**\r
@@ -119,7 +115,7 @@ PlInitializeDebugSupportDriver (
 EFI_STATUS\r
 EFIAPI\r
 PlUnloadDebugSupportDriver (\r
-  IN EFI_HANDLE                       ImageHandle\r
+  IN EFI_HANDLE  ImageHandle\r
   );\r
 \r
 /**\r
@@ -138,8 +134,8 @@ PlUnloadDebugSupportDriver (
 EFI_STATUS\r
 EFIAPI\r
 GetMaximumProcessorIndex (\r
-  IN EFI_DEBUG_SUPPORT_PROTOCOL       *This,\r
-  OUT UINTN                           *MaxProcessorIndex\r
+  IN EFI_DEBUG_SUPPORT_PROTOCOL  *This,\r
+  OUT UINTN                      *MaxProcessorIndex\r
   );\r
 \r
 /**\r
@@ -159,9 +155,9 @@ GetMaximumProcessorIndex (
 EFI_STATUS\r
 EFIAPI\r
 RegisterPeriodicCallback (\r
-  IN EFI_DEBUG_SUPPORT_PROTOCOL       *This,\r
-  IN UINTN                            ProcessorIndex,\r
-  IN EFI_PERIODIC_CALLBACK            PeriodicCallback\r
+  IN EFI_DEBUG_SUPPORT_PROTOCOL  *This,\r
+  IN UINTN                       ProcessorIndex,\r
+  IN EFI_PERIODIC_CALLBACK       PeriodicCallback\r
   );\r
 \r
 /**\r
@@ -184,10 +180,10 @@ RegisterPeriodicCallback (
 EFI_STATUS\r
 EFIAPI\r
 RegisterExceptionCallback (\r
-  IN EFI_DEBUG_SUPPORT_PROTOCOL       *This,\r
-  IN UINTN                            ProcessorIndex,\r
-  IN EFI_EXCEPTION_CALLBACK           ExceptionCallback,\r
-  IN EFI_EXCEPTION_TYPE               ExceptionType\r
+  IN EFI_DEBUG_SUPPORT_PROTOCOL  *This,\r
+  IN UINTN                       ProcessorIndex,\r
+  IN EFI_EXCEPTION_CALLBACK      ExceptionCallback,\r
+  IN EFI_EXCEPTION_TYPE          ExceptionType\r
   );\r
 \r
 /**\r
@@ -206,10 +202,10 @@ RegisterExceptionCallback (
 EFI_STATUS\r
 EFIAPI\r
 InvalidateInstructionCache (\r
-  IN EFI_DEBUG_SUPPORT_PROTOCOL       *This,\r
-  IN UINTN                            ProcessorIndex,\r
-  IN VOID                             *Start,\r
-  IN UINT64                           Length\r
+  IN EFI_DEBUG_SUPPORT_PROTOCOL  *This,\r
+  IN UINTN                       ProcessorIndex,\r
+  IN VOID                        *Start,\r
+  IN UINT64                      Length\r
   );\r
 \r
 /**\r
@@ -225,8 +221,8 @@ InvalidateInstructionCache (
 **/\r
 VOID\r
 CreateEntryStub (\r
-  IN EFI_EXCEPTION_TYPE     ExceptionType,\r
-  OUT VOID                  **Stub\r
+  IN EFI_EXCEPTION_TYPE  ExceptionType,\r
+  OUT VOID               **Stub\r
   );\r
 \r
 /**\r
@@ -262,8 +258,8 @@ GetInterruptHandleFromIdt (
 **/\r
 EFI_STATUS\r
 ManageIdtEntryTable (\r
-  CALLBACK_FUNC      NewCallback,\r
-  EFI_EXCEPTION_TYPE ExceptionType\r
+  CALLBACK_FUNC       NewCallback,\r
+  EFI_EXCEPTION_TYPE  ExceptionType\r
   );\r
 \r
 /**\r
@@ -280,8 +276,8 @@ ManageIdtEntryTable (
 **/\r
 VOID\r
 HookEntry (\r
-  IN EFI_EXCEPTION_TYPE            ExceptionType,\r
-  IN CALLBACK_FUNC                 NewCallback\r
+  IN EFI_EXCEPTION_TYPE  ExceptionType,\r
+  IN CALLBACK_FUNC       NewCallback\r
   );\r
 \r
 /**\r
@@ -292,7 +288,7 @@ HookEntry (
 **/\r
 VOID\r
 UnhookEntry (\r
-  IN EFI_EXCEPTION_TYPE           ExceptionType\r
+  IN EFI_EXCEPTION_TYPE  ExceptionType\r
   );\r
 \r
 #endif\r