arm: Fix armv8 compilation error
authorShaibal.Dutta <shaibal.dutta@broadcom.com>
Mon, 9 Jun 2014 20:25:52 +0000 (13:25 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 5 Jul 2014 07:30:20 +0000 (09:30 +0200)
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@broadcom.com>
Signed-off-by: Darwin Rambo <drambo@broadcom.com>
Reviewed-by: Darwin Rambo <drambo@broadcom.com>
arch/arm/include/asm/proc-armv/system.h

index 693d1f4921d44eaec8180ecd8597e38d44d33dd7..c61374e9f2e49a767ac2d565342712c1e6139d0e 100644 (file)
@@ -22,7 +22,7 @@
 #define local_irq_save(flags)                                  \
        ({                                                      \
        asm volatile(                                           \
-       "mrs    %0, daif"                                       \
+       "mrs    %0, daif\n"                                     \
        "msr    daifset, #3"                                    \
        : "=r" (flags)                                          \
        :                                                       \