summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:46:53 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:46:53 +0000
commitf9acc339fe66dce682d124d98956dd65af467676 (patch)
tree8af3a889cbb103d58797db6eff866511e4d36d4d /c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-f9acc339fe66dce682d124d98956dd65af467676.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* e500/mmu/mmu.c, mpc505/ictrl/ictrl.c, mpc505/timer/timer.c, mpc5xx/ictrl/ictrl.c, mpc5xx/timer/timer.c, mpc6xx/altivec/vec_sup.c, mpc6xx/clock/c_clock.c, mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/pte121.c, mpc8260/timer/timer.c, mpc8xx/timer/timer.c, new-exceptions/cpu.c, new-exceptions/bspsupport/ppc_exc_initialize.c, ppc403/clock/clock.c, ppc403/console/console.c, ppc403/console/console.c.polled, ppc403/console/console405.c, ppc403/irq/ictrl.c, ppc403/tty_drv/tty_drv.c, rtems/powerpc/cache.h, shared/include/powerpc-utility.h, shared/src/cache.c: Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
index c52e1b6249..65dc92a754 100644
--- a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
+++ b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
@@ -124,7 +124,7 @@ SPR_RO (HID0);
static void
set_hid0_sync (unsigned long val)
{
- asm volatile (
+ __asm__ volatile (
" sync \n"
" isync \n"
" mtspr %0, %1 \n"
@@ -221,7 +221,7 @@ do_dssall (void)
* rely on consistent compiler flags).
*/
#define DSSALL 0x7e00066c /* dssall opcode */
- asm volatile (" .long %0"::"i" (DSSALL));
+ __asm__ volatile (" .long %0"::"i" (DSSALL));
#undef DSSALL
}
}
@@ -287,7 +287,7 @@ check_bat_size (unsigned long size)
if (0xffffffff == size) {
bit = 32;
} else {
- asm volatile (" cntlzw %0, %1":"=r" (bit):"r" (size));
+ __asm__ volatile (" cntlzw %0, %1":"=r" (bit):"r" (size));
bit = 31 - bit;
if (1 << bit != size)
return -1;