summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Dispatcher
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-26 09:14:47 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-26 09:14:47 +0000
commit6d9a0f280d49fd1000fa685ee1392f45ff998e69 (patch)
tree2211c9c2381f1b068a5363f68340e756a6bf7cdd /MdeModulePkg/Core/Dxe/Dispatcher
parenta19ad64bf02e21f93cb716eec54a412cc3ca6e3b (diff)
downloadedk2-6d9a0f280d49fd1000fa685ee1392f45ff998e69.zip
edk2-6d9a0f280d49fd1000fa685ee1392f45ff998e69.tar.gz
edk2-6d9a0f280d49fd1000fa685ee1392f45ff998e69.tar.bz2
Update comments on setting >= 8 bytes Fv Alignment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9372 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Dispatcher')
-rw-r--r--MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
index 7e6ddce..6a18fe9 100644
--- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
@@ -845,9 +845,12 @@ CoreProcessFvImageFile (
// FvImage should be at its required alignment.
//
FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *) Buffer;
+ //
+ // Get FvHeader alignment
+ //
FvAlignment = 1 << ((FvHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
//
- // FvAlignment must be more than 8 bytes required by FvHeader structure.
+ // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.
//
if (FvAlignment < 8) {
FvAlignment = 8;