diff options
author | Achin Gupta <achin.gupta@arm.com> | 2017-01-20 11:54:59 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-01-20 11:57:38 +0000 |
commit | 90d1f671cdad43fa80ba295b3f8d1133d68229df (patch) | |
tree | 605aba1b305ffaf08ccf9518fb33ff01fbae36cb /ArmPkg/Library/ArmLib/Arm/ArmV7ArchTimer.c | |
parent | 9c8fe63c15d638a1a546ca4592c15d1612e2123e (diff) | |
download | edk2-platforms-90d1f671cdad43fa80ba295b3f8d1133d68229df.tar.xz |
ArmPlatformPkg/NorFlashDxe: Change Flash memory attributes before writes
In NorFlashFvbInitialize() if a valid Firmware Volume header is not found at the
start of NOR Flash, the Flash memory is written before it has been remapped with
EFI_MEMORY_UC attributes to allow write commands. Since the flash memory was
previously mapped with Normal and possibly cacheable memory attributes, the
Flash commands might never reach the device.
This patch fixes this issue by remapping the Flash memory region with correct
memory attributes before writing to it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'ArmPkg/Library/ArmLib/Arm/ArmV7ArchTimer.c')
0 files changed, 0 insertions, 0 deletions