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

* include/bsp.h, shmsupp/lock.c, startup/bspclean.c:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 12:34:23 +00:00
parent a571938285
commit 5e858ba704
4 changed files with 13 additions and 8 deletions
+5
View File
@@ -1,3 +1,8 @@
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h, shmsupp/lock.c, 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>.
+1 -1
View File
@@ -34,7 +34,7 @@ extern "C" {
#define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp=123; \
asm volatile( "0: \
__asm__ volatile( "0: \
nbcd %0 ; \
nbcd %0 ; \
dbf %1,0b" \
+3 -3
View File
@@ -49,9 +49,9 @@ void Shm_Lock(
rtems_interrupt_disable( isr_level );
Shm_isrstat = isr_level;
asm volatile( "lockit:" : : );
asm volatile( "tas %0@" : "=a" (lockptr) : "0" (lockptr) );
asm volatile( "bne lockit" : : );
__asm__ volatile( "lockit:" : : );
__asm__ volatile( "tas %0@" : "=a" (lockptr) : "0" (lockptr) );
__asm__ volatile( "bne lockit" : : );
/* should delay */
}
@@ -23,12 +23,12 @@ void bsp_return_to_monitor_trap(void)
register volatile void *start_addr;
m68k_set_vbr( 0 ); /* restore 135Bug vectors */
asm volatile( "trap #15" ); /* trap to 135Bug */
asm volatile( ".short 0x63" ); /* return to 135Bug (.RETURN) */
__asm__ volatile( "trap #15" ); /* trap to 135Bug */
__asm__ volatile( ".short 0x63" ); /* return to 135Bug (.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) );
}
#define TIMER 0xfffb0000
@@ -41,5 +41,5 @@ void bsp_cleanup( void )
Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0x00 );
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
asm volatile( "trap #13" ); /* insures SUPV mode */
__asm__ volatile( "trap #13" ); /* insures SUPV mode */
}