diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-05-14 22:11:04 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-05-14 22:11:04 +0000 |
commit | 36d66acf275135699fea9243e58e25990ab0db7f (patch) | |
tree | 296b0a2409660d57ecc99338ed8ed022c40c5766 /ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c | |
parent | 7c794bf4a04e483540e9490b8eaed2cfbc7499ea (diff) | |
download | edk2-platforms-36d66acf275135699fea9243e58e25990ab0db7f.tar.xz |
ArmPlatformPkg/NorFlashDxe: Fixed LBA for FVB
FVB (for instance for UEFI Variable) might not be at the
start of the NOR Flash. 'Lba' needs to be fixed up for it.
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@15532 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c')
-rw-r--r-- | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c index bf420853b0..efe87e57fd 100644 --- a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c +++ b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c @@ -535,7 +535,7 @@ FvbWrite ( Instance = INSTANCE_FROM_FVB_THIS (This);
- return NorFlashWriteSingleBlock (Instance, Lba, Offset, NumBytes, Buffer);
+ return NorFlashWriteSingleBlock (Instance, Instance->StartLba + Lba, Offset, NumBytes, Buffer);
}
/**
|