On 10/14/16 11:33, Bhupesh Sharma wrote: > Various IPs on NXP/FSL SoCs having ARM64 cores have big-endian > MMIO interfaces. > > This implies that a byte-swap operation is needed to read/write > such BE MMIO registers from the LE ARM64 cores. > > This patch adds the support for the same. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Meenakshi Aggarwal <[email protected]> > Signed-off-by: Bhupesh Sharma <[email protected]> > --- > MdePkg/Include/Library/IoLib.h | 364 ++++++++++++++++++++ > MdePkg/Library/BaseIoLibIntrinsic/IoLibArm.c | 479 > +++++++++++++++++++++++++++ > 2 files changed, 843 insertions(+)
I think this is both overkill and incomplete, at the same time :) - Incomplete because only one IoLib instance gets the implementation. - Overkill because you can easily use the SwapBytes16, SwapBytes32, SwapBytes64 functions -- also from BaseLib --, for transforming MmioWrite arguments and MmioRead results. Thanks Laszlo _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

