]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: ensure DebugAgentVectorTable is 2K-aligned
authorMark Rutland <mark.rutland@arm.com>
Tue, 17 Nov 2015 13:58:19 +0000 (13:58 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 17 Nov 2015 13:58:19 +0000 (13:58 +0000)
We force alignment to 2K after generating the DebugAgentVectorTable
symbol, and hence DebugAgentVectorTable itself may not be 2K-aligned,
and table entries may not be at the correct offset from the
DebugAgentVectorTable base address.

Fix this by forcing alignment before generating the
DebugAgentVectorTable symbol.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18865 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/DebugAgentSymbolsBaseLib/AArch64/DebugAgentException.S

index 022e2796c5c44fa9323b9c301133386fb8af0a5d..3fc090b2c3a63c6562658910906c7720c9f02150 100644 (file)
@@ -16,12 +16,12 @@ GCC_ASM_EXPORT(DebugAgentVectorTable)
 GCC_ASM_IMPORT(DefaultExceptionHandler)\r
 \r
 .text\r
+.align 11\r
 ASM_PFX(DebugAgentVectorTable):\r
 \r
 //\r
 // Current EL with SP0 : 0x0 - 0x180\r
 //\r
-.align 11\r
 ASM_PFX(SynchronousExceptionSP0):\r
   b   ASM_PFX(SynchronousExceptionSP0)\r
 \r