forked from Imagelibrary/rtems
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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>
|
||||
|
||||
* startup/bspreset.c:
|
||||
Use "__asm__" instead of "asm" for improved c99-compliance.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -24,13 +24,13 @@ void bsp_reset(void)
|
||||
|
||||
#ifdef __thumb__
|
||||
int tmp;
|
||||
asm volatile (" .code 16 \n" \
|
||||
__asm__ volatile (" .code 16 \n" \
|
||||
"ldr %[tmp], =_start \n" \
|
||||
"bx %[tmp] \n" \
|
||||
"nop \n" \
|
||||
: [tmp]"=&r" (tmp) );
|
||||
#else
|
||||
asm volatile ("b _start");
|
||||
__asm__ volatile ("b _start");
|
||||
#endif
|
||||
while(1);
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspreset.c:
|
||||
Use "__asm__" instead of "asm" for improved c99-compliance.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -21,7 +21,7 @@ void bsp_reset(void)
|
||||
rtems_interrupt_level level;
|
||||
rtems_interrupt_disable(level);
|
||||
/* disable mmu, invalide i-cache and call swi #4 */
|
||||
asm volatile(""
|
||||
__asm__ volatile(""
|
||||
"mrc p15,0,r0,c1,c0,0 \n"
|
||||
"bic r0,r0,#1 \n"
|
||||
"mcr p15,0,r0,c1,c0,0 \n"
|
||||
|
||||
Reference in New Issue
Block a user