[rtems commit] libcpu/powerpc/mpc6xx/mmu/bat.c: Now compiles with gcc 5.x

Joel Sherril joel at rtems.org
Tue Jan 13 21:41:38 UTC 2015


Module:    rtems
Branch:    master
Commit:    85dbf520f88b645739b77a2c6013c584712da046
Changeset: http://git.rtems.org/rtems/commit/?id=85dbf520f88b645739b77a2c6013c584712da046

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Jan 13 15:40:31 2015 -0600

libcpu/powerpc/mpc6xx/mmu/bat.c: Now compiles with gcc 5.x

---

 c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
index 8b991d3..c848f4c 100644
--- a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
+++ b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
@@ -52,20 +52,20 @@ static unsigned bat_in_use[2] = { 0, 0 };
 /* define a few macros */
 
 #define CLRBAT_ASM(batu,r)			\
-	"	sync                 \n"	\
-	"	isync                \n"	\
-	"	li      "#r",    0   \n"	\
-	"	mtspr	"#batu", "#r"\n"	\
-	"	sync                 \n"	\
-	"	isync                \n"
+	"	sync                   \n"	\
+	"	isync                  \n"	\
+	"	li      "#r ",    0    \n"	\
+	"	mtspr   "#batu ", "#r "\n"	\
+	"	sync                   \n"	\
+	"	isync                  \n"
 
 #define SETBAT_ASM(batu, batl, u, l)\
-	"	mtspr	"#batl", "#l" \n"	\
-	"	sync                  \n"	\
-	"	isync                 \n"	\
-	"	mtspr	"#batu", "#u" \n"	\
-	"	sync                  \n"	\
-	"	isync                 \n"
+	"	mtspr	"#batl ", "#l " \n"	\
+	"	sync                    \n"	\
+	"	isync                   \n"	\
+	"	mtspr	"#batu ", "#u " \n"	\
+	"	sync                    \n"	\
+	"	isync                   \n"
 
 #define	CLRBAT(bat)					\
 	asm volatile(					\



More information about the vc mailing list