/** @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
#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
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
**/\r
EFI_STATUS\r
ManageIdtEntryTable (\r
- VOID (EFIAPI *NewCallback)(),\r
+ CALLBACK_FUNC NewCallback,\r
EFI_EXCEPTION_TYPE ExceptionType\r
);\r
\r
VOID\r
HookEntry (\r
IN EFI_EXCEPTION_TYPE ExceptionType,\r
- IN VOID (EFIAPI *NewCallback) ()\r
+ IN CALLBACK_FUNC NewCallback\r
);\r
\r
/**\r