diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 12:36:11 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 12:36:11 +0000 |
commit | fe5d4486d8239d6c98d009c2877608750a89d85d (patch) | |
tree | 555196382fb692f0ee8e5fe07340fba4c5d638a9 /c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c | |
parent | 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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 '')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ } |