]> git.sur5r.net Git - u-boot/commitdiff
arm: debug: adjust for U-Boot
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 1 Sep 2014 02:06:35 +0000 (11:06 +0900)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 26 Oct 2014 21:23:40 +0000 (22:23 +0100)
Because CONFIG_MMU is never defined in U-Boot,
the non-MMU code in debug.S is always used.

Unfortunately, the number of arguments of the addruart macro
in Linux is different between MMU and non-MMU.
This causes a build error when importing some debug macros
using the third argument. (For ex. arch/arm/include/debug/exynos.S)
Pass the third argument to the non-MMU addruart to avoid such a problem.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
arch/arm/lib/debug.S

index ddee7c09c8276077d9397f1fc3539afc2d29f58c..760ba74a3c7c45e3fcea12a6d413a87a3ed31e4e 100644 (file)
@@ -33,7 +33,7 @@
 
 #else /* !CONFIG_MMU */
                .macro  addruart_current, rx, tmp1, tmp2
-               addruart        \rx, \tmp1
+               addruart        \rx, \tmp1, \tmp2
                .endm
 
 #endif /* CONFIG_MMU */