forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h, startup/bspreset.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, startup/bspreset.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>.
|
||||
|
||||
@@ -44,7 +44,7 @@ extern "C" {
|
||||
uint32_t i; \
|
||||
for(i = 0; i<microseconds;) {i++;} \
|
||||
uint32_t _cnt = _microseconds; \
|
||||
asm volatile ("0: nop; sub %0, %0, #1; cmp %0,#0; bne 0b" : "=c"(_cnt) : "0"(_cnt)); \
|
||||
__asm__ volatile ("0: nop; sub %0, %0, #1; cmp %0,#0; bne 0b" : "=c"(_cnt) : "0"(_cnt)); \
|
||||
}
|
||||
|
||||
/** gba_zero_memory library function in start.S */
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
asm volatile ("ldr r0, =_gba_reset");
|
||||
asm volatile ("bx r0");
|
||||
__asm__ volatile ("ldr r0, =_gba_reset");
|
||||
__asm__ volatile ("bx r0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user