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

* include/bsp.h, include/mrm332.h, spurious/spinit.c:
	Use "__asm__" instead of "asm" for improved c99-compliance.
This commit is contained in:
Ralf Corsepius
2011-02-11 12:32:23 +00:00
parent e995906e19
commit c3b18f9f21
4 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h, include/mrm332.h, spurious/spinit.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

@@ -42,7 +42,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" \

View File

@@ -63,7 +63,7 @@
*/
/* static void reboot(void) __attribute__ ((noreturn)); */
static void reboot(void);
__inline__ static void reboot() {asm("trap #15; .word 0x0063");}
__inline__ static void reboot() {__asm__ ("trap #15; .word 0x0063");}
#endif /* ASM */

View File

@@ -77,7 +77,7 @@ rtems_isr Spurious_Isr(
bsp_cleanup();
/* BDM SIGEMT */
asm(" .word 0x4afa");
__asm__ (" .word 0x4afa");
for(;;);
}