/** @file\r
Common header file for CPU Exception Handler Library.\r
\r
- Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2015, 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
#include <Library/PrintLib.h>\r
#include <Library/LocalApicLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
-#include <Library/ReportStatusCodeLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/SynchronizationLib.h>\r
\r
/**\r
Display CPU information.\r
\r
- @param InterruptType Exception type.\r
+ @param ExceptionType Exception type.\r
@param SystemContext Pointer to EFI_SYSTEM_CONTEXT.\r
**/\r
VOID\r
previously installed.\r
@retval EFI_UNSUPPORTED The interrupt specified by InterruptType is not supported,\r
or this function is not supported.\r
-*/\r
+**/\r
EFI_STATUS\r
RegisterCpuInterruptHandlerWorker (\r
IN EFI_EXCEPTION_TYPE InterruptType,\r
);\r
\r
/**\r
- Fix up the vector number in the vector code.\r
+ Fix up the vector number and function address in the vector code.\r
\r
- @param[in] VectorBase Base address of the vector handler.\r
- @param[in] VectorNum Index of vector.\r
+ @param[in] NewVectorAddr New vector handler address.\r
+ @param[in] VectorNum Index of vector.\r
+ @param[in] OldVectorAddr Old vector handler address.\r
\r
**/\r
VOID\r
EFIAPI\r
AsmVectorNumFixup (\r
- IN VOID *VectorBase,\r
- IN UINT8 VectorNum\r
+ IN VOID *NewVectorAddr,\r
+ IN UINT8 VectorNum,\r
+ IN VOID *OldVectorAddr\r
);\r
\r
/**\r
IN UINTN VectorCount\r
);\r
\r
+/**\r
+ Get ASCII format string exception name by exception type.\r
+\r
+ @param ExceptionType Exception type.\r
+\r
+ @return ASCII format string exception name.\r
+**/\r
+CONST CHAR8 *\r
+GetExceptionNameStr (\r
+ IN EFI_EXCEPTION_TYPE ExceptionType\r
+ );\r
+\r
#endif\r
\r