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

This commit is contained in:
Joel Sherrill
2015-01-13 15:40:31 -06:00
parent f2e6c3e84a
commit 85dbf520f8

View File

@@ -52,20 +52,20 @@ static unsigned bat_in_use[2] = { 0, 0 };
/* define a few macros */ /* define a few macros */
#define CLRBAT_ASM(batu,r) \ #define CLRBAT_ASM(batu,r) \
" sync \n" \ " sync \n" \
" isync \n" \ " isync \n" \
" li "#r", 0 \n" \ " li "#r ", 0 \n" \
" mtspr "#batu", "#r"\n" \ " mtspr "#batu ", "#r "\n" \
" sync \n" \ " sync \n" \
" isync \n" " isync \n"
#define SETBAT_ASM(batu, batl, u, l)\ #define SETBAT_ASM(batu, batl, u, l)\
" mtspr "#batl", "#l" \n" \ " mtspr "#batl ", "#l " \n" \
" sync \n" \ " sync \n" \
" isync \n" \ " isync \n" \
" mtspr "#batu", "#u" \n" \ " mtspr "#batu ", "#u " \n" \
" sync \n" \ " sync \n" \
" isync \n" " isync \n"
#define CLRBAT(bat) \ #define CLRBAT(bat) \
asm volatile( \ asm volatile( \