forked from Imagelibrary/rtems
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:
@@ -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>
|
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* timer/timer.c: Include <rtems/btimer.h>.
|
* timer/timer.c: Include <rtems/btimer.h>.
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ extern "C" {
|
|||||||
#define rtems_bsp_delay( microseconds ) \
|
#define rtems_bsp_delay( microseconds ) \
|
||||||
{ register uint32_t _delay=(microseconds); \
|
{ register uint32_t _delay=(microseconds); \
|
||||||
register uint32_t _tmp=123; \
|
register uint32_t _tmp=123; \
|
||||||
asm volatile( "0: \
|
__asm__ volatile( "0: \
|
||||||
nbcd %0 ; \
|
nbcd %0 ; \
|
||||||
nbcd %0 ; \
|
nbcd %0 ; \
|
||||||
dbf %1,0b" \
|
dbf %1,0b" \
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
*/
|
*/
|
||||||
/* static void reboot(void) __attribute__ ((noreturn)); */
|
/* static void reboot(void) __attribute__ ((noreturn)); */
|
||||||
static void reboot(void);
|
static void reboot(void);
|
||||||
__inline__ static void reboot() {asm("trap #15; .word 0x0063");}
|
__inline__ static void reboot() {__asm__ ("trap #15; .word 0x0063");}
|
||||||
|
|
||||||
#endif /* ASM */
|
#endif /* ASM */
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ rtems_isr Spurious_Isr(
|
|||||||
bsp_cleanup();
|
bsp_cleanup();
|
||||||
|
|
||||||
/* BDM SIGEMT */
|
/* BDM SIGEMT */
|
||||||
asm(" .word 0x4afa");
|
__asm__ (" .word 0x4afa");
|
||||||
|
|
||||||
for(;;);
|
for(;;);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user