Re: [edk2-devel] [PATCH v1 10/11] ArmVirtPkg: Link NorFlashDxe with BaseMemoryLibMmio

2020-05-14 Thread Laszlo Ersek
On 05/14/20 10:40, Sami Mujawar wrote: > NorFlashDxe must use aligned MMIO accesses to > read data from flash as this is device memory. > > The AlignedCopyMem() in NorFlashDxe was used to > copy the flash data which prevented unaligned > access to device memory. However, the compiler > could optim

[edk2-devel] [PATCH v1 10/11] ArmVirtPkg: Link NorFlashDxe with BaseMemoryLibMmio

2020-05-14 Thread Sami Mujawar
NorFlashDxe must use aligned MMIO accesses to read data from flash as this is device memory. The AlignedCopyMem() in NorFlashDxe was used to copy the flash data which prevented unaligned access to device memory. However, the compiler could optimize the code to generate pre/post indexed or LDP oper