Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-07 Thread Ard Biesheuvel
.@apple.com; Zhu, > Yonghong > Subject: Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with > strict alignment > > On 8 January 2016 at 07:13, Gao, Liming wrote: >> Ard: >> Could we add this option in AARCH64_CC_FLAGS if it has no impact to DXE >>

Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-07 Thread Gao, Liming
nal Message- From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] Sent: Friday, January 08, 2016 3:14 PM To: Gao, Liming Cc: edk2-devel@lists.01.org; leif.lindh...@linaro.org; af...@apple.com; Zhu, Yonghong Subject: Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignm

Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-07 Thread Ard Biesheuvel
04, 2016 5:53 PM > To: edk2-devel@lists.01.org; Gao, Liming; leif.lindh...@linaro.org; > af...@apple.com; Zhu, Yonghong > Cc: Ard Biesheuvel > Subject: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict > alignment > > On AARCH64, before we turn on the MMU, unali

Re: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-07 Thread Gao, Liming
Of Ard Biesheuvel Sent: Monday, January 04, 2016 5:53 PM To: edk2-devel@lists.01.org; Gao, Liming; leif.lindh...@linaro.org; af...@apple.com; Zhu, Yonghong Cc: Ard Biesheuvel Subject: [edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment On AARCH64, before we turn on the

[edk2] [PATCH 0/2] BaseTools AARCH64: build XIP modules with strict alignment

2016-01-04 Thread Ard Biesheuvel
On AARCH64, before we turn on the MMU, unaligned accesses are not allowed. Since the idiom recognition employed by GCC may turn allowable sequences into sequences that result in such unaligned accesses (i.e., a sequence of byte wide loads in reverse order may be turned into a wider load and a rev i