]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/DebugSupport.h
MdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModul...
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / DebugSupport.h
index 4628117b0956b73a9922072ab0484ca9005c6f92..7f7d8e5ba69e04c30de47c817f1e7eaafb327551 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Generic debug support macros, typedefs and prototypes for IA32/x64.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2010, 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
@@ -26,7 +26,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/BaseLib.h>\r
-#include <Library/PcdLib.h>\r
 \r
 #define NUM_IDT_ENTRIES                 0x78\r
 #define SYSTEM_TIMER_VECTOR             0x68\r
@@ -37,12 +36,17 @@ VOID
   VOID\r
   );\r
 \r
+typedef\r
+VOID\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
-  VOID (EFIAPI *RegisteredCallback) ();\r
+  CALLBACK_FUNC             RegisteredCallback;\r
 } IDT_ENTRY;\r
 \r
 extern UINT8                     InterruptEntryStub[];\r
@@ -258,7 +262,7 @@ GetInterruptHandleFromIdt (
 **/\r
 EFI_STATUS\r
 ManageIdtEntryTable (\r
-  VOID               (EFIAPI *NewCallback)(),\r
+  CALLBACK_FUNC      NewCallback,\r
   EFI_EXCEPTION_TYPE ExceptionType\r
   );\r
 \r
@@ -277,7 +281,7 @@ ManageIdtEntryTable (
 VOID\r
 HookEntry (\r
   IN EFI_EXCEPTION_TYPE            ExceptionType,\r
-  IN VOID                         (EFIAPI *NewCallback) ()\r
+  IN CALLBACK_FUNC                 NewCallback\r
   );\r
 \r
 /**\r