summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:36:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 12:36:11 +0000
commitfe5d4486d8239d6c98d009c2877608750a89d85d (patch)
tree555196382fb692f0ee8e5fe07340fba4c5d638a9 /c
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fe5d4486d8239d6c98d009c2877608750a89d85d.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* startup/bspclean.c: Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/m68k/mvme147/ChangeLog5
-rw-r--r--c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme147/ChangeLog b/c/src/lib/libbsp/m68k/mvme147/ChangeLog
index 013fe91548..99a3f84b6b 100644
--- a/c/src/lib/libbsp/m68k/mvme147/ChangeLog
+++ b/c/src/lib/libbsp/m68k/mvme147/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * startup/bspclean.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/mvme147/startup/bspclean.c b/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
index f584143fcd..114aafd6dc 100644
--- a/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
+++ b/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
@@ -26,12 +26,12 @@ void bsp_return_to_monitor_trap(void)
register volatile void *start_addr;
m68k_set_vbr( 0 ); /* restore 147Bug vectors */
- asm volatile( "trap #15" ); /* trap to 147Bug */
- asm volatile( ".short 0x63" ); /* return to 147Bug (.RETURN) */
+ __asm__ volatile( "trap #15" ); /* trap to 147Bug */
+ __asm__ volatile( ".short 0x63" ); /* return to 147Bug (.RETURN) */
/* restart program */
start_addr = start;
- asm volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
+ __asm__ volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
}
void bsp_cleanup( void )
@@ -40,5 +40,5 @@ void bsp_cleanup( void )
pcc->timer2_int_control = 0; /* Disable Timer 2 */
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
- asm volatile( "trap #13" ); /* ensures SUPV mode */
+ __asm__ volatile( "trap #13" ); /* ensures SUPV mode */
}