]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h
UefiCpuPkg: Convert all .uni files to utf-8
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / CpuExceptionCommon.h
index 6b0ccfe73de28d69f22e4ff908a97c41b9c2d953..b28e9c574a65ec4a06ed24d9c1729f4b0b795e64 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -22,7 +22,6 @@
 #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
@@ -116,7 +115,7 @@ FindModuleImageBase (
 /**\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
@@ -156,7 +155,7 @@ InitializeCpuExceptionHandlersWorker (
                                 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
@@ -205,17 +204,19 @@ ArchRestoreExceptionContext (
   );\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
@@ -236,5 +237,17 @@ ReadAndVerifyVectorInfo (
   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