ArmPlatformPkg/BootMonFs: Added support for new revision of the NOR Flash file system

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15324 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin
2014-03-12 17:23:33 +00:00
committed by oliviermartin
parent 0698723204
commit cb77b48ad9
3 changed files with 18 additions and 5 deletions

View File

@@ -109,11 +109,15 @@ BootMonFsImageInThisBlock (
return FALSE;
}
if (Ptr->Version != HW_IMAGE_FOOTER_VERSION) {
return FALSE;
}
if (Ptr->Offset != HW_IMAGE_FOOTER_OFFSET) {
if (Ptr->Version == HW_IMAGE_FOOTER_VERSION) {
if (Ptr->Offset != HW_IMAGE_FOOTER_OFFSET) {
return FALSE;
}
} else if (Ptr->Version == HW_IMAGE_FOOTER_VERSION2) {
if (Ptr->Offset != HW_IMAGE_FOOTER_OFFSET2) {
return FALSE;
}
} else {
return FALSE;
}