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

Darwin Rambo drambo at broadcom.com
Mon Jun 9 22:25:52 CEST 2014


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)						\
 	:							\
-- 
1.7.9.5



More information about the U-Boot mailing list