On 11 December 2014 at 17:42, Varad Gautam varadgautam@gmail.com wrote:
On Thursday 11 December 2014 09:15 PM, Arnd Bergmann wrote:
On Thursday 11 December 2014 19:27:03 Varad Gautam wrote:
I'm getting
arch/arm/kernel/efi_phys.S: Assembler messages: arch/arm/kernel/efi_phys.S:42: Error: selected processor does not support ARM mode `isb' arch/arm/kernel/efi_phys.S:50: Error: selected processor does not support ARM mode `isb' make[1]: *** [arch/arm/kernel/efi_phys.o] Error 1
when compiling the topic-leg-uefi kernel [1] with EFI_STUB support for omap2plus_defconfig (to run on a BeagleBone Black with AM335x SoC). I've checked that armv7 supports `isb`, and I've tried the kernel.org 4.6.3-nolibc toolchain [2] and the Linaro gcc-arm-none-eabi-4.8 release. The build goes fine without EFI support. I need some help figuring out what's wrong.
The code should be changed to use the instr_sync macro instead of using the isb instruction directly.
Thanks, that did it. Should I send in a fix?
Since you are building for a v7 platform, I guess this is caused by the TI platforms building for ARMv6 . If you send a patch to the linaro-uefi list, I'll apply it to my topic branch and it will get pulled into the next leg-kernel release. Changing the kernel config to disable v6 support would be a workaround.
(Given Ard Biesheuvel's upcoming core changes, this particular file may actually disappear in future.)
/ Leif