Hi Zhi-zhou,
having a %rax register here : Error: no such instruction: `mrs %rax,daif//arch_local_save_flags'
makes me think that you're using an x86_64 compiler and not the AArch64 one.
regards, Yvan
On 26 April 2014 03:10, Zhi-zhou Zhang zhizhou.zh@gmail.com wrote:
hi, For building arm64 kernel, I tried all toolchain released from http://releases.linaro.org/latest/components/toolchain/binaries/ But it complained about some instructions bad: /home/work/linux/arch/arm64/include/asm/irqflags.h: Assembler messages: /home/work/linux/arch/arm64/include/asm/irqflags.h:49: Error: no such instruction: `msr daifset,' /home/work/linux/arch/arm64/include/asm/irqflags.h:68: Error: no such instruction: `mrs %rax,daif//arch_local_save_flags' /home/work/linux/arch/arm64/include/asm/irqflags.h:49: Error: no such instruction: `msr daifset,' /home/work/linux/arch/arm64/include/asm/irqflags.h:68: Error: no such instruction: `mrs %rax,daif//arch_local_save_flags' /home/work/linux/arch/arm64/include/asm/irqflags.h:40: Error: no such instruction: `msr daifclr,' /home/work/linux/arch/arm64/include/asm/irqflags.h:68: Error: no such instruction: `mrs %rax,daif//arch_local_save_flags' /home/work/linux/arch/arm64/include/asm/irqflags.h:40: Error: no such instruction: `msr daifclr,'
Could anyone tell how to solve it? thanks!
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain