[U-Boot] [PATCH] arm: Fix armv8 compilation error

Albert ARIBAUD albert.u.boot at aribaud.net
Sat Jul 5 11:03:02 CEST 2014


Hi Darwin,

On Mon, 9 Jun 2014 13:25:52 -0700, Darwin Rambo <drambo at broadcom.com>
wrote:

> From: "Shaibal.Dutta" <shaibal.dutta at broadcom.com>
> 
> Fix following compilation error when CONFIG_ARM64 is defined
> 
> Error: unknown or missing system register name at operand 2
> -- `mrs x0,daifmsr daifset,#3'
> 
> Signed-off-by: Shaibal.Dutta <shaibal.dutta at broadcom.com>
> Signed-off-by: Darwin Rambo <drambo at broadcom.com>
> Reviewed-by: Darwin Rambo <drambo at broadcom.com>
> ---
> 
>  arch/arm/include/asm/proc-armv/system.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/include/asm/proc-armv/system.h b/arch/arm/include/asm/proc-armv/system.h
> index 693d1f4..c61374e 100644
> --- a/arch/arm/include/asm/proc-armv/system.h
> +++ b/arch/arm/include/asm/proc-armv/system.h
> @@ -22,7 +22,7 @@
>  #define local_irq_save(flags)					\
>  	({							\
>  	asm volatile(						\
> -	"mrs	%0, daif"					\
> +	"mrs	%0, daif\n"					\
>  	"msr	daifset, #3"					\
>  	: "=r" (flags)						\
>  	:							\

Applied to u-boot-arm/master, thanks!

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list