summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mcf5329
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:36:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:36:10 +0000
commit89815e1096ee51e921248487ac48c312c36d329e (patch)
tree37777e1b6d01101598954b62388b991e9f8c3e00 /c/src/lib/libbsp/m68k/mcf5329
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-89815e1096ee51e921248487ac48c312c36d329e.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* startup/cfinit.c: Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mcf5329')
-rw-r--r--c/src/lib/libbsp/m68k/mcf5329/ChangeLog5
-rw-r--r--c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5329/ChangeLog b/c/src/lib/libbsp/m68k/mcf5329/ChangeLog
index bef53f1631..5ccc43d579 100644
--- a/c/src/lib/libbsp/m68k/mcf5329/ChangeLog
+++ b/c/src/lib/libbsp/m68k/mcf5329/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * startup/cfinit.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff --git a/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c b/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c
index d265ca95ac..1f6502f350 100644
--- a/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c
+++ b/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c
@@ -118,8 +118,8 @@ static void disable_watchdog_timer(void)
**********************************************************************/
static void disable_cache(void)
{
- asm("move.l #0x01000000,%d0");
- asm("movec %d0,%CACR");
+ __asm__ ("move.l #0x01000000,%d0");
+ __asm__ ("movec %d0,%CACR");
}
/*********************************************************************
@@ -182,13 +182,13 @@ static void init_cache(void)
* Cache is enabled in bspstart.c
*/
#if 0
- asm("move.l #0xa0000600,%d0");
- asm("movec %d0,%CACR");
+ __asm__ ("move.l #0xa0000600,%d0");
+ __asm__ ("movec %d0,%CACR");
#endif
- asm("move.l #0x4001c020,%d0");
- asm("movec %d0,%ACR0");
- asm("move.l #0x00000000,%d0");
- asm("movec %d0,%ACR1");
+ __asm__ ("move.l #0x4001c020,%d0");
+ __asm__ ("movec %d0,%ACR0");
+ __asm__ ("move.l #0x00000000,%d0");
+ __asm__ ("movec %d0,%ACR1");
}
/*********************************************************************