ArmPlatform: Remove dummy padding to make the Reset Vector aligned on 32 bytes boundary
A dummy padding was added before the Reset Vectors to force the alignment on a 32 bytes boundary in XIP code. The correct fix is to define the alignment in the FDF file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11588 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -254,7 +254,7 @@ READ_LOCK_STATUS = TRUE
|
|||||||
|
|
||||||
[Rule.Common.SEC]
|
[Rule.Common.SEC]
|
||||||
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
||||||
TE TE Align = 8 |.efi
|
TE TE Align = 32 |.efi
|
||||||
}
|
}
|
||||||
|
|
||||||
[Rule.Common.PEI_CORE]
|
[Rule.Common.PEI_CORE]
|
||||||
|
@@ -254,7 +254,7 @@ READ_LOCK_STATUS = TRUE
|
|||||||
|
|
||||||
[Rule.Common.SEC]
|
[Rule.Common.SEC]
|
||||||
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
||||||
TE TE Align = 8 |.efi
|
TE TE Align = 32 |.efi
|
||||||
}
|
}
|
||||||
|
|
||||||
[Rule.Common.PEI_CORE]
|
[Rule.Common.PEI_CORE]
|
||||||
|
@@ -257,7 +257,7 @@ READ_LOCK_STATUS = TRUE
|
|||||||
|
|
||||||
[Rule.Common.SEC]
|
[Rule.Common.SEC]
|
||||||
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
||||||
TE TE Align = 8 |.efi
|
TE TE Align = 32 |.efi
|
||||||
}
|
}
|
||||||
|
|
||||||
[Rule.Common.PEI_CORE]
|
[Rule.Common.PEI_CORE]
|
||||||
|
@@ -29,9 +29,6 @@ GCC_ASM_EXPORT(PeiVectorTable)
|
|||||||
//Default Exception Handlers
|
//Default Exception Handlers
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
//FIXME: One of the EDK2 tool is broken. It does not look to respect the alignment. Even, if we specify 32-byte alignment for this file.
|
|
||||||
Dummy1: .word 0
|
|
||||||
Dummy2: .word 0
|
|
||||||
|
|
||||||
ASM_PFX(PeiVectorTable):
|
ASM_PFX(PeiVectorTable):
|
||||||
b _DefaultResetHandler
|
b _DefaultResetHandler
|
||||||
|
@@ -25,9 +25,6 @@
|
|||||||
//Default Exception Handlers
|
//Default Exception Handlers
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
//FIXME: One of the EDK2 tool is broken. It does not look to respect the alignment. Even, if we specify 32-byte alignment for this file.
|
|
||||||
Dummy1 DCD 0
|
|
||||||
Dummy2 DCD 0
|
|
||||||
|
|
||||||
PeiVectorTable
|
PeiVectorTable
|
||||||
b _DefaultResetHandler
|
b _DefaultResetHandler
|
||||||
|
@@ -29,9 +29,6 @@ GCC_ASM_EXPORT(SecVectorTable)
|
|||||||
//Default Exception Handlers
|
//Default Exception Handlers
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
//FIXME: One of the EDK2 tool is broken. It does not look to respect the alignment. Even, if we specify 32-byte alignment for this file.
|
|
||||||
Dummy1: .word 0
|
|
||||||
Dummy2: .word 0
|
|
||||||
|
|
||||||
ASM_PFX(SecVectorTable):
|
ASM_PFX(SecVectorTable):
|
||||||
b _DefaultResetHandler
|
b _DefaultResetHandler
|
||||||
|
@@ -25,9 +25,6 @@
|
|||||||
//Default Exception Handlers
|
//Default Exception Handlers
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
//FIXME: One of the EDK2 tool is broken. It does not look to respect the alignment. Even, if we specify 32-byte alignment for this file.
|
|
||||||
Dummy1 DCD 0
|
|
||||||
Dummy2 DCD 0
|
|
||||||
|
|
||||||
SecVectorTable
|
SecVectorTable
|
||||||
b _DefaultResetHandler
|
b _DefaultResetHandler
|
||||||
|
Reference in New Issue
Block a user