mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/BootMonFs: Fix flushing new files
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman <brendan.jackman@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15516 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bf6091a95a
commit
e29771bb6e
|
@ -309,8 +309,8 @@ BootMonFsFlushFile (
|
||||||
FileStart = File->HwDescription.BlockStart * BlockSize;
|
FileStart = File->HwDescription.BlockStart * BlockSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FileEnd is the NOR address of the end of the file's data
|
// FileEnd is the current NOR address of the end of the file's data
|
||||||
FileEnd = FileStart + BootMonFsGetImageLength (File);
|
FileEnd = FileStart + File->HwDescription.Region[0].Size;
|
||||||
|
|
||||||
for (RegionToFlushLink = GetFirstNode (&File->RegionToFlushLink);
|
for (RegionToFlushLink = GetFirstNode (&File->RegionToFlushLink);
|
||||||
!IsNull (&File->RegionToFlushLink, RegionToFlushLink);
|
!IsNull (&File->RegionToFlushLink, RegionToFlushLink);
|
||||||
|
|
Loading…
Reference in New Issue