]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.c
ARM Packages: Force the SEC modules to be 2K aligned for AArch64
[mirror_edk2.git] / ArmPkg / Library / DebugAgentSymbolsBaseLib / DebugAgentSymbolsBaseLib.c
index 6da648d9907f5d4a7e2ed91845eaa4e4e69b4c07..9fbaeaf430e749bf1f0f2b5f5b5147b0f55edb1a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 *  Main file supporting the SEC Phase for Versatile Express\r
 *\r
-*  Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
 *\r
 *  This program and the accompanying materials\r
 *  are licensed and made available under the terms and conditions of the BSD License\r
@@ -283,9 +283,10 @@ InitializeDebugAgent (
   EFI_FFS_FILE_HEADER   *FfsHeader;\r
   PE_COFF_LOADER_IMAGE_CONTEXT  ImageContext;\r
 \r
-  // Now we've got UART, make the check:\r
-  // - The Vector table must be 32-byte aligned\r
-  //Need to fix basetools ASSERT(((UINTN)DebugAgentVectorTable & ARM_VECTOR_TABLE_ALIGNMENT) == 0);\r
+  // Now we've got UART, check the Debug Agent Vector Table\r
+  // Note: The AArch64 Vector table must be 2k-byte aligned - if this assertion fails ensure\r
+  // 'Align=4K' is defined into your FDF for this module.\r
+  ASSERT (((UINTN)DebugAgentVectorTable & ARM_VECTOR_TABLE_ALIGNMENT) == 0);\r
   ArmWriteVBar ((UINTN)DebugAgentVectorTable);\r
 \r
   // We use InitFlag to know if DebugAgent has been intialized from\r