]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c
ArmPkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / ArmPkg / Library / ArmExceptionLib / ArmExceptionLib.c
index cebb26a4ce4cab81b735913eb55902df1dcdc909..245e848e3f48784ca85b9d3bfc20a5da807b2809 100644 (file)
@@ -2,16 +2,10 @@
 *  Main file supporting the SEC Phase for Versatile Express\r
 *\r
 *  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2021, Arm Limited. All rights reserved.<BR>\r
 *  Copyright (c) 2016 HP Development Company, L.P.\r
 *\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
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 *\r
 **/\r
 \r
@@ -100,7 +94,7 @@ InitializeCpuExceptionHandlers(
 \r
   Status = EFI_SUCCESS;\r
 \r
-  // if we are requested to copy exceptin handlers to another location\r
+  // if we are requested to copy exception handlers to another location\r
   if (gArmRelocateVectorTable) {\r
 \r
     VectorBase = PcdGet64(PcdCpuVectorBaseAddress);\r
@@ -137,7 +131,7 @@ InitializeCpuExceptionHandlers(
 }\r
 \r
 /**\r
-Copies exception handlers to the speciifed address.\r
+Copies exception handlers to the specified address.\r
 \r
 Caller should try to get an array of interrupt and/or exception vectors that are in use and need to\r
 persist by EFI_VECTOR_HANDOFF_INFO defined in PI 1.3 specification.\r
@@ -259,7 +253,8 @@ RETURN_STATUS
 RegisterCpuInterruptHandler(\r
   IN EFI_EXCEPTION_TYPE             ExceptionType,\r
   IN EFI_CPU_INTERRUPT_HANDLER      ExceptionHandler\r
-  ) {\r
+  )\r
+{\r
   if (ExceptionType > gMaxExceptionNumber) {\r
     return RETURN_UNSUPPORTED;\r
   }\r
@@ -314,7 +309,7 @@ CommonCExceptionHandler(
     }\r
   }\r
   else {\r
-    DEBUG((EFI_D_ERROR, "Unknown exception type %d\n", ExceptionType));\r
+    DEBUG((DEBUG_ERROR, "Unknown exception type %d\n", ExceptionType));\r
     ASSERT(FALSE);\r
   }\r
 \r
@@ -352,4 +347,3 @@ InitializeCpuExceptionHandlersEx (
 {\r
   return InitializeCpuExceptionHandlers (VectorInfo);\r
 }\r
-\r