]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/CpuExceptionHandlerLib: Add DumpCpuContext()
authorJeff Fan <jeff.fan@intel.com>
Sat, 1 Apr 2017 05:53:08 +0000 (13:53 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 7 Apr 2017 01:43:40 +0000 (09:43 +0800)
This API is used to display exception type and all processor context for debug
purpose.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Include/Library/CpuExceptionHandlerLib.h
MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.c

index b3016eee5dadf9af16ff83902d9dfa600d66ffb1..6cd823012749af0daea7aaf1db79c363fed993d9 100644 (file)
@@ -2,7 +2,7 @@
   CPU Exception library provides the default CPU interrupt/exception handler.\r
   It also provides capability to register user interrupt/exception handler.\r
 \r
-  Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2012 - 2017, 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
@@ -93,4 +93,17 @@ RegisterCpuInterruptHandler (
   IN EFI_CPU_INTERRUPT_HANDLER     InterruptHandler\r
   );\r
 \r
+/**\r
+  Display processor context.\r
+\r
+  @param[in] ExceptionType  Exception type.\r
+  @param[in] SystemContext  Processor context to be display.\r
+**/\r
+VOID\r
+EFIAPI\r
+DumpCpuContext (\r
+  IN EFI_EXCEPTION_TYPE   ExceptionType,\r
+  IN EFI_SYSTEM_CONTEXT   SystemContext\r
+  );\r
+  \r
 #endif\r
index 68ee9a93d7d1f101ba2ad2e13fab9a71ef1334b7..cbe4768633115c5c9bb5d83ec48c1d58406af0d2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   CPU Exception Handler library implementition with empty functions.\r
 \r
-  Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2012 - 2017, 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
@@ -97,3 +97,17 @@ RegisterCpuInterruptHandler (
   return EFI_UNSUPPORTED;\r
 }\r
 \r
+/**\r
+  Display processor context.\r
+\r
+  @param[in] ExceptionType  Exception type.\r
+  @param[in] SystemContext  Processor context to be display.\r
+**/\r
+VOID\r
+EFIAPI\r
+DumpCpuContext (\r
+  IN EFI_EXCEPTION_TYPE   ExceptionType,\r
+  IN EFI_SYSTEM_CONTEXT   SystemContext\r
+  )\r
+{\r
+}\r