2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>

* startup/bspclean.c:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 12:36:11 +00:00
parent 89815e1096
commit fe5d4486d8
2 changed files with 9 additions and 4 deletions

View File

@@ -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>.

View File

@@ -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 */
}