change log for rtems (2011-02-11)
rtems-vc at rtems.org
rtems-vc at rtems.org
Fri Feb 11 13:11:10 UTC 2011
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* shared/milkymist_networking/network.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.19 c/src/lib/libbsp/lm32/ChangeLog
M 1.2 c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c
diff -u rtems/c/src/lib/libbsp/lm32/ChangeLog:1.18 rtems/c/src/lib/libbsp/lm32/ChangeLog:1.19
--- rtems/c/src/lib/libbsp/lm32/ChangeLog:1.18 Wed Feb 9 02:19:30 2011
+++ rtems/c/src/lib/libbsp/lm32/ChangeLog Fri Feb 11 06:13:12 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shared/milkymist_networking/network.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* shared/milkymist_timer/timer.c, shared/timer/timer.c:
diff -u rtems/c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c:1.1 rtems/c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c:1.2
--- rtems/c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c:1.1 Fri Aug 20 16:23:27 2010
+++ rtems/c/src/lib/libbsp/lm32/shared/milkymist_networking/network.c Fri Feb 11 06:13:12 2011
@@ -297,7 +297,7 @@
for (j = 0 ; j < NB_RX_SLOTS ; j++) {
if (minimac_read(rx_slot_state[j]) == MINIMAC_STATE_PENDING) {
- asm volatile( /* Invalidate Level-1 data cache */
+ __asm__ volatile( /* Invalidate Level-1 data cache */
"wcsr DCC, r0\n"
"nop\n"
);
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* shared/console/polled_io.c, shared/flash/spansionFlash.c,
shared/startup/bspidle.c, shared/startup/probeMemEnd.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.246 c/src/lib/libbsp/powerpc/ChangeLog
M 1.18 c/src/lib/libbsp/powerpc/shared/console/polled_io.c
M 1.5 c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c
M 1.2 c/src/lib/libbsp/powerpc/shared/startup/bspidle.c
M 1.7 c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c
diff -u rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.245 rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.246
--- rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.245 Wed Feb 2 08:59:53 2011
+++ rtems/c/src/lib/libbsp/powerpc/ChangeLog Fri Feb 11 06:19:29 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shared/console/polled_io.c, shared/flash/spansionFlash.c,
+ shared/startup/bspidle.c, shared/startup/probeMemEnd.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.17 rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.18
--- rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.17 Fri Jan 28 14:29:52 2011
+++ rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c Fri Feb 11 06:19:29 2011
@@ -909,7 +909,7 @@
/* Necessary to avoid including a library, and GCC won't do this inline. */
#define div10(num, rmd) \
do { uint32_t t1, t2, t3; \
- asm("lis %4,0xcccd; " \
+ __asm__ ("lis %4,0xcccd; " \
"addi %4,%4,0xffffcccd; " /* Build 0xcccccccd */ \
"mulhwu %3,%0+1,%4; " /* (num.l*cst.l).h */ \
"mullw %2,%0,%4; " /* (num.h*cst.l).l */ \
diff -u rtems/c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c:1.4 rtems/c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c:1.5
--- rtems/c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c:1.4 Sun Nov 29 22:29:20 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/flash/spansionFlash.c Fri Feb 11 06:19:29 2011
@@ -77,7 +77,7 @@
/* Assume flash-endianness == CPU endianness */
#ifdef __PPC__
-#define IOSYNC(mem) do { asm volatile("eieio"); } while (0)
+#define IOSYNC(mem) do { __asm__ volatile("eieio"); } while (0)
#else
#define IOSYNC(mem) do { } while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/shared/startup/bspidle.c:1.1 rtems/c/src/lib/libbsp/powerpc/shared/startup/bspidle.c:1.2
--- rtems/c/src/lib/libbsp/powerpc/shared/startup/bspidle.c:1.1 Wed Sep 9 20:19:31 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/startup/bspidle.c Fri Feb 11 06:19:29 2011
@@ -27,7 +27,7 @@
void *bsp_idle_thread( uintptr_t ignored )
{
for( ; ; ) {
- asm volatile(
+ __asm__ volatile(
"mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0"
);
}
diff -u rtems/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c:1.6 rtems/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c:1.7
--- rtems/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c:1.6 Tue Dec 1 18:30:45 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/startup/probeMemEnd.c Fri Feb 11 06:19:29 2011
@@ -123,7 +123,7 @@
register uint32_t v, x;
if ( _read_MSR() & MSR_VE ) {
#define DSSALL 0x7e00066c /* dssall opcode */
- asm volatile(" .long %0"::"i"(DSSALL));
+ __asm__ volatile(" .long %0"::"i"(DSSALL));
#undef DSSALL
}
asm volatile("sync");
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* shared/gdbstub/m68k-stub.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.57 c/src/lib/libbsp/m68k/ChangeLog
M 1.11 c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
diff -u rtems/c/src/lib/libbsp/m68k/ChangeLog:1.56 rtems/c/src/lib/libbsp/m68k/ChangeLog:1.57
--- rtems/c/src/lib/libbsp/m68k/ChangeLog:1.56 Wed Feb 2 08:58:34 2011
+++ rtems/c/src/lib/libbsp/m68k/ChangeLog Fri Feb 11 06:20:34 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shared/gdbstub/m68k-stub.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:1.10 rtems/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:1.11
--- rtems/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c:1.10 Sun Nov 29 08:59:41 2009
+++ rtems/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c Fri Feb 11 06:20:34 2011
@@ -211,11 +211,11 @@
#ifdef __HAVE_68881__
/* do an fsave, then remember the address to begin a restore from */
-#define SAVE_FP_REGS() asm(" fsave -(%a0)"); \
- asm(" fmovem.x %fp0-%fp7,registers+72"); \
- asm(" fmovem.l %fpcr/%fpsr/%fpi,registers+168");
+#define SAVE_FP_REGS() __asm__ (" fsave -(%a0)"); \
+ __asm__ (" fmovem.x %fp0-%fp7,registers+72"); \
+ __asm__ (" fmovem.l %fpcr/%fpsr/%fpi,registers+168");
#define RESTORE_FP_REGS() \
-asm(" \n\
+__asm__ (" \n\
fmovem.l registers+168,%fpcr/%fpsr/%fpi \n\
fmovem.x registers+72,%fp0-%fp7 \n\
cmp.l #-1,(%a0) | skip frestore flag set ? \n\
@@ -244,7 +244,7 @@
/*
* get vector base register
*/
- asm(" movec.l %%vbr,%0":"=a" (vec_base));
+ __asm__ (" movec.l %%vbr,%0":"=a" (vec_base));
#endif
vec_base[vecnum] = vector;
}
@@ -257,7 +257,7 @@
* that the C compiler manages sections properly
*/
{
-asm("\n\
+__asm__ ("\n\
.globl return_to_super \n\
return_to_super: \n\
move.l registers+60,%sp /* get new stack pointer */ \n\
@@ -286,27 +286,27 @@
dbf %d0,copyUserLoop \n\
");
RESTORE_FP_REGS()
- asm(" movem.l registers,%d0-%d7/%a0-%a6");
- asm(" rte"); /* pop and go! */
+ __asm__ (" movem.l registers,%d0-%d7/%a0-%a6");
+ __asm__ (" rte"); /* pop and go! */
-#define DISABLE_INTERRUPTS() asm(" oriw #0x0700,%sr");
-#define BREAKPOINT() asm(" trap #2");
+#define DISABLE_INTERRUPTS() __asm__ (" oriw #0x0700,%sr");
+#define BREAKPOINT() __asm__ (" trap #2");
/* this function is called immediately when a level 7 interrupt occurs */
/* if the previous interrupt level was 7 then we're already servicing */
/* this interrupt and an rte is in order to return to the debugger. */
/* For the 68000, the offset for sr is 6 due to the jsr return address */
-asm(" \n\
+__asm__ (" \n\
.text \n\
.globl _debug_level7 \n\
_debug_level7: \n\
move.w %d0,-(%sp)");
#if M68K_HAS_VBR
-asm(" move.w 2(%sp),%d0");
+__asm__ (" move.w 2(%sp),%d0");
#else
-asm(" move.w 6(%sp),%d0");
+__asm__ (" move.w 6(%sp),%d0");
#endif
-asm(" andi.w #0x700,%d0 \n\
+__asm__ (" andi.w #0x700,%d0 \n\
cmpi.w #0x700,%d0 \n\
beq already7 \n\
move.w (%sp)+,%d0 \n\
@@ -314,9 +314,9 @@
already7: \n\
move.w (%sp)+,%d0");
#if !M68K_HAS_VBR
-asm(" lea 4(%sp),%sp"); /* pull off 68000 return address */
+__asm__ (" lea 4(%sp),%sp"); /* pull off 68000 return address */
#endif
-asm(" rte");
+__asm__ (" rte");
#if M68K_HAS_VBR
/* This function is called when a 68020 exception occurs. It saves
@@ -334,17 +334,17 @@
*
*
*/
-asm(" \n\
+__asm__ (" \n\
.text \n\
.globl _catchException \n\
_catchException:");
DISABLE_INTERRUPTS();
-asm(" \n\
+__asm__ (" \n\
movem.l %d0-%d7/%a0-%a6,registers /* save registers */ \n\
move.l lastFrame,%a0 /* last frame pointer */ \n\
");
SAVE_FP_REGS();
-asm("\n\
+__asm__ ("\n\
lea registers,%a5 /* get address of registers */\n\
move.w (%sp),%d1 /* get status register */\n\
move.w %d1,66(%a5) /* save sr */ \n\
@@ -426,17 +426,17 @@
* Return Address MSWord
* Return Address LSWord
*/
-asm("\n\
+__asm__ ("\n\
.text\n\
.globl _catchException\n\
_catchException:");
DISABLE_INTERRUPTS();
-asm("\
+__asm__ ("\
moveml %d0-%d7/%a0-%a6,registers /* save registers */ \n\
movel lastFrame,%a0 /* last frame pointer */ \n\
");
SAVE_FP_REGS();
-asm(" \n\
+__asm__ (" \n\
lea registers,%a5 /* get address of registers */ \n\
movel (%sp)+,%d2 /* pop return address */ \n\
addl #1530,%d2 /* convert return addr to */ \n\
@@ -493,13 +493,13 @@
* stack pointer into an area reserved for debugger use in case the
* breakpoint happened in supervisor mode.
*/
-asm("remcomHandler:");
-asm(" add.l #4,%sp"); /* pop off return address */
-asm(" move.l (%sp)+,%d0"); /* get the exception number */
-asm(" move.l stackPtr,%sp"); /* move to remcom stack area */
-asm(" move.l %d0,-(%sp)"); /* push exception onto stack */
-asm(" jbsr handle_exception"); /* this never returns */
-asm(" rts"); /* return */
+__asm__ ("remcomHandler:");
+__asm__ (" add.l #4,%sp"); /* pop off return address */
+__asm__ (" move.l (%sp)+,%d0"); /* get the exception number */
+__asm__ (" move.l stackPtr,%sp"); /* move to remcom stack area */
+__asm__ (" move.l %d0,-(%sp)"); /* push exception onto stack */
+__asm__ (" jbsr handle_exception"); /* this never returns */
+__asm__ (" rts"); /* return */
} /* end of stub_dummy_asm_wrapper function */
void _returnFromException( Frame *frame )
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/occan.c,
shared/spw/grspw.c, shared/uart/apbuart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.83 c/src/lib/libbsp/sparc/ChangeLog
M 1.5 c/src/lib/libbsp/sparc/shared/1553/b1553brm.c
M 1.7 c/src/lib/libbsp/sparc/shared/can/grcan.c
M 1.8 c/src/lib/libbsp/sparc/shared/can/occan.c
M 1.7 c/src/lib/libbsp/sparc/shared/spw/grspw.c
M 1.5 c/src/lib/libbsp/sparc/shared/uart/apbuart.c
diff -u rtems/c/src/lib/libbsp/sparc/ChangeLog:1.82 rtems/c/src/lib/libbsp/sparc/ChangeLog:1.83
--- rtems/c/src/lib/libbsp/sparc/ChangeLog:1.82 Wed Feb 2 09:00:35 2011
+++ rtems/c/src/lib/libbsp/sparc/ChangeLog Fri Feb 11 06:22:07 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/occan.c,
+ shared/spw/grspw.c, shared/uart/apbuart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c:1.4 rtems/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c:1.5
--- rtems/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c:1.4 Sun Nov 29 09:33:27 2009
+++ rtems/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c Fri Feb 11 06:22:07 2011
@@ -89,7 +89,7 @@
#define READ_DMA(address) _BRM_REG_READ16((unsigned int)address)
static __inline__ unsigned short _BRM_REG_READ16(unsigned int addr) {
unsigned short tmp;
- asm(" lduha [%1]1, %0 "
+ __asm__ (" lduha [%1]1, %0 "
: "=r"(tmp)
: "r"(addr)
);
diff -u rtems/c/src/lib/libbsp/sparc/shared/can/grcan.c:1.6 rtems/c/src/lib/libbsp/sparc/shared/can/grcan.c:1.7
--- rtems/c/src/lib/libbsp/sparc/shared/can/grcan.c:1.6 Sun Nov 29 09:33:27 2009
+++ rtems/c/src/lib/libbsp/sparc/shared/can/grcan.c Fri Feb 11 06:22:07 2011
@@ -267,7 +267,7 @@
static unsigned char __inline__ _grcan_read_nocache_byte(unsigned int address)
{
unsigned char tmp;
- asm(" lduba [%1]1, %0 "
+ __asm__ (" lduba [%1]1, %0 "
: "=r"(tmp)
: "r"(address)
);
@@ -282,7 +282,7 @@
static unsigned int __inline__ _grcan_read_nocache(unsigned int address)
{
unsigned int tmp;
- asm(" lda [%1]1, %0 "
+ __asm__ (" lda [%1]1, %0 "
: "=r"(tmp)
: "r"(address)
);
diff -u rtems/c/src/lib/libbsp/sparc/shared/can/occan.c:1.7 rtems/c/src/lib/libbsp/sparc/shared/can/occan.c:1.8
--- rtems/c/src/lib/libbsp/sparc/shared/can/occan.c:1.7 Sun Nov 29 09:33:27 2009
+++ rtems/c/src/lib/libbsp/sparc/shared/can/occan.c Fri Feb 11 06:22:07 2011
@@ -295,7 +295,7 @@
#define READ_REG(address) _OCCAN_REG_READ((unsigned int)(address))
static __inline__ unsigned char _OCCAN_REG_READ(unsigned int addr) {
unsigned char tmp;
- asm(" lduba [%1]1, %0 "
+ __asm__ (" lduba [%1]1, %0 "
: "=r"(tmp)
: "r"(addr)
);
diff -u rtems/c/src/lib/libbsp/sparc/shared/spw/grspw.c:1.6 rtems/c/src/lib/libbsp/sparc/shared/spw/grspw.c:1.7
--- rtems/c/src/lib/libbsp/sparc/shared/spw/grspw.c:1.6 Sun Nov 29 09:33:28 2009
+++ rtems/c/src/lib/libbsp/sparc/shared/spw/grspw.c Fri Feb 11 06:22:07 2011
@@ -206,7 +206,7 @@
#else
static unsigned int _SPW_READ(void *addr) {
unsigned int tmp;
- asm(" lda [%1]1, %0 "
+ __asm__ (" lda [%1]1, %0 "
: "=r"(tmp)
: "r"(addr)
);
@@ -215,7 +215,7 @@
static unsigned int _MEM_READ(void *addr) {
unsigned int tmp;
- asm(" lduba [%1]1, %0 "
+ __asm__ (" lduba [%1]1, %0 "
: "=r"(tmp)
: "r"(addr)
);
diff -u rtems/c/src/lib/libbsp/sparc/shared/uart/apbuart.c:1.4 rtems/c/src/lib/libbsp/sparc/shared/uart/apbuart.c:1.5
--- rtems/c/src/lib/libbsp/sparc/shared/uart/apbuart.c:1.4 Sun Nov 29 09:33:28 2009
+++ rtems/c/src/lib/libbsp/sparc/shared/uart/apbuart.c Fri Feb 11 06:22:07 2011
@@ -144,7 +144,7 @@
#define READ_REG(address) _APBUART_READ_REG((unsigned int)(address))
static __inline__ unsigned int _APBUART_READ_REG(unsigned int addr) {
unsigned int tmp;
- asm(" lda [%1]1, %0 "
+ __asm__ (" lda [%1]1, %0 "
: "=r"(tmp)
: "r"(addr)
);
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspstart.c, startup/init5282.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.58 c/src/lib/libbsp/m68k/av5282/ChangeLog
M 1.15 c/src/lib/libbsp/m68k/av5282/startup/bspstart.c
M 1.6 c/src/lib/libbsp/m68k/av5282/startup/init5282.c
diff -u rtems/c/src/lib/libbsp/m68k/av5282/ChangeLog:1.57 rtems/c/src/lib/libbsp/m68k/av5282/ChangeLog:1.58
--- rtems/c/src/lib/libbsp/m68k/av5282/ChangeLog:1.57 Wed Feb 9 02:34:31 2011
+++ rtems/c/src/lib/libbsp/m68k/av5282/ChangeLog Fri Feb 11 06:30:00 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspstart.c, startup/init5282.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/av5282/startup/bspstart.c:1.14 rtems/c/src/lib/libbsp/m68k/av5282/startup/bspstart.c:1.15
--- rtems/c/src/lib/libbsp/m68k/av5282/startup/bspstart.c:1.14 Tue Apr 27 12:33:53 2010
+++ rtems/c/src/lib/libbsp/m68k/av5282/startup/bspstart.c Fri Feb 11 06:30:00 2011
@@ -35,8 +35,8 @@
/*
* CPU-space access
*/
-#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
-#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
+#define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
+#define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
/*
* Read/write copy of common cache
@@ -94,7 +94,7 @@
* Top half of cache is I-space
*/
addr = (void *)((int)addr | 0x400);
- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
}
void _CPU_cache_enable_data(void)
@@ -129,7 +129,7 @@
* Bottom half of cache is D-space
*/
addr = (void *)((int)addr & ~0x400);
- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
}
/*
diff -u rtems/c/src/lib/libbsp/m68k/av5282/startup/init5282.c:1.5 rtems/c/src/lib/libbsp/m68k/av5282/startup/init5282.c:1.6
--- rtems/c/src/lib/libbsp/m68k/av5282/startup/init5282.c:1.5 Sun Nov 29 08:59:40 2009
+++ rtems/c/src/lib/libbsp/m68k/av5282/startup/init5282.c Fri Feb 11 06:30:00 2011
@@ -9,9 +9,9 @@
#include <rtems.h>
#include <bsp.h>
-#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
-#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
-#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
+#define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
+#define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
+#define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
#define MM_SDRAM_BASE (0x00000000)
/*
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, startup/init5272.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.51 c/src/lib/libbsp/m68k/csb360/ChangeLog
M 1.13 c/src/lib/libbsp/m68k/csb360/include/bsp.h
M 1.9 c/src/lib/libbsp/m68k/csb360/startup/init5272.c
diff -u rtems/c/src/lib/libbsp/m68k/csb360/ChangeLog:1.50 rtems/c/src/lib/libbsp/m68k/csb360/ChangeLog:1.51
--- rtems/c/src/lib/libbsp/m68k/csb360/ChangeLog:1.50 Wed Feb 2 08:58:38 2011
+++ rtems/c/src/lib/libbsp/m68k/csb360/ChangeLog Fri Feb 11 06:30:02 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h, startup/init5272.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m68k/csb360/include/bsp.h:1.12 rtems/c/src/lib/libbsp/m68k/csb360/include/bsp.h:1.13
--- rtems/c/src/lib/libbsp/m68k/csb360/include/bsp.h:1.12 Fri Aug 21 12:58:58 2009
+++ rtems/c/src/lib/libbsp/m68k/csb360/include/bsp.h Fri Feb 11 06:30:03 2011
@@ -129,7 +129,7 @@
#define 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" \
diff -u rtems/c/src/lib/libbsp/m68k/csb360/startup/init5272.c:1.8 rtems/c/src/lib/libbsp/m68k/csb360/startup/init5272.c:1.9
--- rtems/c/src/lib/libbsp/m68k/csb360/startup/init5272.c:1.8 Tue Apr 27 16:54:57 2010
+++ rtems/c/src/lib/libbsp/m68k/csb360/startup/init5272.c Fri Feb 11 06:30:03 2011
@@ -53,12 +53,12 @@
usb_regs_t *g_usb_regs = (void *) MCF5272_USB_BASE(BSP_MBAR);
#define m68k_set_srambar( _rambar0 ) \
- asm volatile ( "movec %0,%%rambar0\n\t" \
+ __asm__ volatile ( "movec %0,%%rambar0\n\t" \
"nop\n\t" \
: : "d" (_rambar0) )
#define m68k_set_mbar( _mbar ) \
- asm volatile ( "movec %0,%%mbar\n\t" \
+ __asm__ volatile ( "movec %0,%%mbar\n\t" \
"nop\n\t" \
: : "d" (_mbar) )
@@ -67,7 +67,7 @@
#define mcf5272_disable_cache() \
- asm volatile ( "nop\n\t" \
+ __asm__ volatile ( "nop\n\t" \
"movec %0,%%cacr\n\t" \
"nop\n\t" \
"movec %0,%%cacr\n\t" \
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* console/mc68ec.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.122 c/src/lib/libbsp/m68k/idp/ChangeLog
M 1.6 c/src/lib/libbsp/m68k/idp/console/mc68ec.c
diff -u rtems/c/src/lib/libbsp/m68k/idp/ChangeLog:1.121 rtems/c/src/lib/libbsp/m68k/idp/ChangeLog:1.122
--- rtems/c/src/lib/libbsp/m68k/idp/ChangeLog:1.121 Wed Feb 9 06:05:50 2011
+++ rtems/c/src/lib/libbsp/m68k/idp/ChangeLog Fri Feb 11 06:30:13 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * console/mc68ec.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/idp/console/mc68ec.c:1.5 rtems/c/src/lib/libbsp/m68k/idp/console/mc68ec.c:1.6
--- rtems/c/src/lib/libbsp/m68k/idp/console/mc68ec.c:1.5 Tue Aug 19 05:24:42 2008
+++ rtems/c/src/lib/libbsp/m68k/idp/console/mc68ec.c Fri Feb 11 06:30:14 2011
@@ -15,6 +15,6 @@
{
while (num--)
{
- asm ("nop");
+ __asm__ ("nop");
}
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h startup/init5206e.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.113 c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog
M 1.18 c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h
M 1.10 c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c
diff -u rtems/c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog:1.112 rtems/c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog:1.113
--- rtems/c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog:1.112 Wed Feb 2 08:58:56 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5206elite/ChangeLog Fri Feb 11 06:30:16 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h startup/init5206e.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h:1.17 rtems/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h:1.18
--- rtems/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h:1.17 Fri Aug 21 12:59:01 2009
+++ rtems/c/src/lib/libbsp/m68k/mcf5206elite/include/bsp.h Fri Feb 11 06:30:16 2011
@@ -153,7 +153,7 @@
#define 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" \
diff -u rtems/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c:1.9 rtems/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c:1.10
--- rtems/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c:1.9 Tue Apr 27 17:01:18 2010
+++ rtems/c/src/lib/libbsp/m68k/mcf5206elite/startup/init5206e.c Fri Feb 11 06:30:16 2011
@@ -36,12 +36,12 @@
extern void INTERRUPT_VECTOR(void);
#define m68k_set_srambar( _rambar0 ) \
- asm volatile ( "movec %0,%%rambar0\n\t" \
+ __asm__ volatile ( "movec %0,%%rambar0\n\t" \
"nop\n\t" \
: : "d" (_rambar0) )
#define m68k_set_mbar( _mbar ) \
- asm volatile ( "movec %0,%%mbar\n\t" \
+ __asm__ volatile ( "movec %0,%%mbar\n\t" \
"nop\n\t" \
: : "d" (_mbar) )
@@ -49,7 +49,7 @@
m68k_set_cacr( MCF5206E_CACR_CENB )
#define mcf5206e_disable_cache() \
- asm volatile ( "nop\n\t" \
+ __asm__ volatile ( "nop\n\t" \
"movec %0,%%cacr\n\t" \
"nop\n\t" \
"movec %0,%%cacr\n\t" \
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/init5235.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.64 c/src/lib/libbsp/m68k/mcf5235/ChangeLog
M 1.8 c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c
diff -u rtems/c/src/lib/libbsp/m68k/mcf5235/ChangeLog:1.63 rtems/c/src/lib/libbsp/m68k/mcf5235/ChangeLog:1.64
--- rtems/c/src/lib/libbsp/m68k/mcf5235/ChangeLog:1.63 Wed Feb 9 06:08:17 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5235/ChangeLog Fri Feb 11 06:32:21 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/init5235.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c:1.7 rtems/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c:1.8
--- rtems/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c:1.7 Wed Apr 28 14:43:25 2010
+++ rtems/c/src/lib/libbsp/m68k/mcf5235/startup/init5235.c Fri Feb 11 06:32:21 2011
@@ -9,9 +9,9 @@
#include <rtems.h>
#include <bsp.h>
-#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
-#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
-#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
+#define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
+#define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
+#define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
#define MM_SDRAM_BASE (0x00000000)
/*
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, include/mrm332.h, spurious/spinit.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.129 c/src/lib/libbsp/m68k/mrm332/ChangeLog
M 1.22 c/src/lib/libbsp/m68k/mrm332/include/bsp.h
M 1.6 c/src/lib/libbsp/m68k/mrm332/include/mrm332.h
M 1.8 c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.128 rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.129
--- rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog:1.128 Wed Feb 9 06:10:03 2011
+++ rtems/c/src/lib/libbsp/m68k/mrm332/ChangeLog Fri Feb 11 06:32:23 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at 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 at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/include/bsp.h:1.21 rtems/c/src/lib/libbsp/m68k/mrm332/include/bsp.h:1.22
--- rtems/c/src/lib/libbsp/m68k/mrm332/include/bsp.h:1.21 Fri Aug 21 12:59:03 2009
+++ rtems/c/src/lib/libbsp/m68k/mrm332/include/bsp.h Fri Feb 11 06:32:23 2011
@@ -42,7 +42,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h:1.5 rtems/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h:1.6
--- rtems/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h:1.5 Wed Apr 21 11:01:35 2004
+++ rtems/c/src/lib/libbsp/m68k/mrm332/include/mrm332.h Fri Feb 11 06:32:23 2011
@@ -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 */
diff -u rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.7 rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.8
--- rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c:1.7 Fri Aug 13 15:49:09 2010
+++ rtems/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c Fri Feb 11 06:32:23 2011
@@ -77,7 +77,7 @@
bsp_cleanup();
/* BDM SIGEMT */
- asm(" .word 0x4afa");
+ __asm__ (" .word 0x4afa");
for(;;);
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* clock/clock.c, startup/bspstart.c, startup/init5282.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.118 c/src/lib/libbsp/m68k/uC5282/ChangeLog
M 1.17 c/src/lib/libbsp/m68k/uC5282/clock/clock.c
M 1.60 c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
M 1.8 c/src/lib/libbsp/m68k/uC5282/startup/init5282.c
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.117 rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.118
--- rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog:1.117 Wed Feb 9 02:33:42 2011
+++ rtems/c/src/lib/libbsp/m68k/uC5282/ChangeLog Fri Feb 11 06:34:18 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * clock/clock.c, startup/bspstart.c, startup/init5282.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/clock/clock.c:1.16 rtems/c/src/lib/libbsp/m68k/uC5282/clock/clock.c:1.17
--- rtems/c/src/lib/libbsp/m68k/uC5282/clock/clock.c:1.16 Wed Aug 26 08:32:22 2009
+++ rtems/c/src/lib/libbsp/m68k/uC5282/clock/clock.c Fri Feb 11 06:34:18 2011
@@ -115,7 +115,7 @@
Thread bsp_idle_thread(uint32_t ignored)
{
for(;;)
- asm volatile ("addq.l #1,__SRAMBASE"); /* Atomic increment */
+ __asm__ volatile ("addq.l #1,__SRAMBASE"); /* Atomic increment */
}
int rtems_bsp_cpu_load_percentage(void)
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c:1.59 rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c:1.60
--- rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c:1.59 Mon Apr 26 12:44:57 2010
+++ rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c Fri Feb 11 06:34:18 2011
@@ -75,10 +75,10 @@
* ACRn[5] = BUFW (buffered write enable) must be 0
* Fix plan: Currently, there are no plans to fix this.
*/
-#define m68k_set_cacr_nop(_cacr) asm volatile ("movec %0,%%cacr\n\tnop" : : "d" (_cacr))
-#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
-#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
-#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
+#define m68k_set_cacr_nop(_cacr) __asm__ volatile ("movec %0,%%cacr\n\tnop" : : "d" (_cacr))
+#define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
+#define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
+#define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
/*
* Read/write copy of cache registers
@@ -140,7 +140,7 @@
* Top half of cache is I-space
*/
addr = (void *)((int)addr | 0x400);
- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
}
void _CPU_cache_enable_data(void)
@@ -181,7 +181,7 @@
* Bottom half of cache is D-space
*/
addr = (void *)((int)addr & ~0x400);
- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
#endif
}
@@ -415,7 +415,7 @@
/* reset-control register */
#define RCR "__IPSBAR + 0x110000"
-asm(
+__asm__ (
"bsp_fake_syscall: \n"
" cmpl #0, %d0 \n" /* sysreset */
" bne 1f \n"
diff -u rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c:1.7 rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c:1.8
--- rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c:1.7 Tue Apr 27 12:23:22 2010
+++ rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c Fri Feb 11 06:34:18 2011
@@ -19,9 +19,9 @@
#include <rtems.h>
#include <bsp.h>
-#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
-#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
-#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
+#define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
+#define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
+#define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
extern void CopyDataClearBSSAndStart (void);
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, shmsupp/lock.c, startup/bspclean.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.115 c/src/lib/libbsp/m68k/mvme136/ChangeLog
M 1.27 c/src/lib/libbsp/m68k/mvme136/include/bsp.h
M 1.12 c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c
M 1.14 c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.114 rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.115
--- rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog:1.114 Wed Feb 9 06:10:53 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme136/ChangeLog Fri Feb 11 06:34:22 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at 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 at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/include/bsp.h:1.26 rtems/c/src/lib/libbsp/m68k/mvme136/include/bsp.h:1.27
--- rtems/c/src/lib/libbsp/m68k/mvme136/include/bsp.h:1.26 Thu Sep 18 12:38:26 2008
+++ rtems/c/src/lib/libbsp/m68k/mvme136/include/bsp.h Fri Feb 11 06:34:23 2011
@@ -34,7 +34,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c:1.11 rtems/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c:1.12
--- rtems/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c:1.11 Thu Apr 15 08:26:14 2004
+++ rtems/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c Fri Feb 11 06:34:23 2011
@@ -49,9 +49,9 @@
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 */
}
diff -u rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.13 rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.14
--- rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c:1.13 Wed Apr 28 14:43:29 2010
+++ rtems/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c Fri Feb 11 06:34:23 2011
@@ -23,12 +23,12 @@
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 @@
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 */
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.15 c/src/lib/libbsp/m32c/m32cbsp/ChangeLog
M 1.2 c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h
M 1.13 c/src/lib/libbsp/m32r/m32rsim/ChangeLog
M 1.3 c/src/lib/libbsp/m32r/m32rsim/include/bsp.h
M 1.120 c/src/lib/libbsp/m68k/gen68302/ChangeLog
M 1.24 c/src/lib/libbsp/m68k/gen68302/include/bsp.h
M 1.128 c/src/lib/libbsp/m68k/gen68340/ChangeLog
M 1.20 c/src/lib/libbsp/m68k/gen68340/include/bsp.h
M 1.136 c/src/lib/libbsp/m68k/gen68360/ChangeLog
M 1.35 c/src/lib/libbsp/m68k/gen68360/include/bsp.h
M 1.114 c/src/lib/libbsp/m68k/sim68000/ChangeLog
M 1.15 c/src/lib/libbsp/m68k/sim68000/include/bsp.h
diff -u rtems/c/src/lib/libbsp/m32c/m32cbsp/ChangeLog:1.14 rtems/c/src/lib/libbsp/m32c/m32cbsp/ChangeLog:1.15
--- rtems/c/src/lib/libbsp/m32c/m32cbsp/ChangeLog:1.14 Wed Feb 9 02:25:58 2011
+++ rtems/c/src/lib/libbsp/m32c/m32cbsp/ChangeLog Fri Feb 11 06:14:46 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h:1.1 rtems/c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h:1.2
--- rtems/c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h:1.1 Thu Oct 2 16:34:35 2008
+++ rtems/c/src/lib/libbsp/m32c/m32cbsp/include/bsp.h Fri Feb 11 06:14:46 2011
@@ -39,7 +39,7 @@
#define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp = 0; /* initialized to avoid warning */ \
- asm volatile( "0: \
+ __asm__ volatile( "0: \
remo 3,31,%0 ; \
cmpo 0,%0 ; \
subo 1,%1,%1 ; \
diff -u rtems/c/src/lib/libbsp/m32r/m32rsim/ChangeLog:1.12 rtems/c/src/lib/libbsp/m32r/m32rsim/ChangeLog:1.13
--- rtems/c/src/lib/libbsp/m32r/m32rsim/ChangeLog:1.12 Wed Feb 2 08:58:33 2011
+++ rtems/c/src/lib/libbsp/m32r/m32rsim/ChangeLog Fri Feb 11 06:15:54 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h:1.2 rtems/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h:1.3
--- rtems/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h:1.2 Mon Jan 31 11:41:09 2011
+++ rtems/c/src/lib/libbsp/m32r/m32rsim/include/bsp.h Fri Feb 11 06:15:54 2011
@@ -56,7 +56,7 @@
#define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp = 0; /* initialized to avoid warning */ \
- asm volatile( "0: \
+ __asm__ volatile( "0: \
remo 3,31,%0 ; \
cmpo 0,%0 ; \
subo 1,%1,%1 ; \
diff -u rtems/c/src/lib/libbsp/m68k/gen68302/ChangeLog:1.119 rtems/c/src/lib/libbsp/m68k/gen68302/ChangeLog:1.120
--- rtems/c/src/lib/libbsp/m68k/gen68302/ChangeLog:1.119 Wed Feb 9 02:35:59 2011
+++ rtems/c/src/lib/libbsp/m68k/gen68302/ChangeLog Fri Feb 11 06:30:04 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/gen68302/include/bsp.h:1.23 rtems/c/src/lib/libbsp/m68k/gen68302/include/bsp.h:1.24
--- rtems/c/src/lib/libbsp/m68k/gen68302/include/bsp.h:1.23 Thu Sep 18 12:38:53 2008
+++ rtems/c/src/lib/libbsp/m68k/gen68302/include/bsp.h Fri Feb 11 06:30:04 2011
@@ -36,7 +36,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/gen68340/ChangeLog:1.127 rtems/c/src/lib/libbsp/m68k/gen68340/ChangeLog:1.128
--- rtems/c/src/lib/libbsp/m68k/gen68340/ChangeLog:1.127 Wed Feb 9 02:37:01 2011
+++ rtems/c/src/lib/libbsp/m68k/gen68340/ChangeLog Fri Feb 11 06:30:06 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/gen68340/include/bsp.h:1.19 rtems/c/src/lib/libbsp/m68k/gen68340/include/bsp.h:1.20
--- rtems/c/src/lib/libbsp/m68k/gen68340/include/bsp.h:1.19 Thu Sep 18 12:38:55 2008
+++ rtems/c/src/lib/libbsp/m68k/gen68340/include/bsp.h Fri Feb 11 06:30:07 2011
@@ -39,7 +39,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/gen68360/ChangeLog:1.135 rtems/c/src/lib/libbsp/m68k/gen68360/ChangeLog:1.136
--- rtems/c/src/lib/libbsp/m68k/gen68360/ChangeLog:1.135 Wed Feb 9 06:13:53 2011
+++ rtems/c/src/lib/libbsp/m68k/gen68360/ChangeLog Fri Feb 11 06:30:09 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h:1.34 rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h:1.35
--- rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h:1.34 Sun Nov 29 08:59:40 2009
+++ rtems/c/src/lib/libbsp/m68k/gen68360/include/bsp.h Fri Feb 11 06:30:09 2011
@@ -53,7 +53,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/sim68000/ChangeLog:1.113 rtems/c/src/lib/libbsp/m68k/sim68000/ChangeLog:1.114
--- rtems/c/src/lib/libbsp/m68k/sim68000/ChangeLog:1.113 Wed Feb 2 08:59:25 2011
+++ rtems/c/src/lib/libbsp/m68k/sim68000/ChangeLog Fri Feb 11 06:34:24 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m68k/sim68000/include/bsp.h:1.14 rtems/c/src/lib/libbsp/m68k/sim68000/include/bsp.h:1.15
--- rtems/c/src/lib/libbsp/m68k/sim68000/include/bsp.h:1.14 Thu Sep 18 12:39:23 2008
+++ rtems/c/src/lib/libbsp/m68k/sim68000/include/bsp.h Fri Feb 11 06:34:24 2011
@@ -39,7 +39,7 @@
#define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp = 0; /* initialized to avoid warning */ \
- asm volatile( "0: \
+ __asm__ volatile( "0: \
remo 3,31,%0 ; \
cmpo 0,%0 ; \
subo 1,%1,%1 ; \
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/cfinit.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.38 c/src/lib/libbsp/m68k/mcf52235/ChangeLog
M 1.4 c/src/lib/libbsp/m68k/mcf52235/startup/cfinit.c
M 1.36 c/src/lib/libbsp/m68k/mcf5329/ChangeLog
M 1.5 c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c
diff -u rtems/c/src/lib/libbsp/m68k/mcf52235/ChangeLog:1.37 rtems/c/src/lib/libbsp/m68k/mcf52235/ChangeLog:1.38
--- rtems/c/src/lib/libbsp/m68k/mcf52235/ChangeLog:1.37 Wed Feb 9 06:06:40 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf52235/ChangeLog Fri Feb 11 06:30:17 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/cfinit.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mcf52235/startup/cfinit.c:1.3 rtems/c/src/lib/libbsp/m68k/mcf52235/startup/cfinit.c:1.4
--- rtems/c/src/lib/libbsp/m68k/mcf52235/startup/cfinit.c:1.3 Sun Nov 29 08:59:41 2009
+++ rtems/c/src/lib/libbsp/m68k/mcf52235/startup/cfinit.c Fri Feb 11 06:30:18 2011
@@ -51,7 +51,7 @@
void init_main(void)
{
/* Mask all interrupts */
- asm("move.w #0x2700,%sr");
+ __asm__ ("move.w #0x2700,%sr");
/* Initialise base address of peripherals, VBR, etc */
init_ipsbar();
@@ -172,8 +172,8 @@
See Device Errata for further details
*/
- asm("move.l #0x00000161,%d0");
- asm("movec %d0,%FLASHBAR");
+ __asm__ ("move.l #0x00000161,%d0");
+ __asm__ ("movec %d0,%FLASHBAR");
}
/*********************************************************************
@@ -232,8 +232,8 @@
DMA access to SRAM block disabled
All access types (supervisor and user) allowed
*/
- asm("move.l #0x20000001,%d0");
- asm("movec %d0,%RAMBAR");
+ __asm__ ("move.l #0x20000001,%d0");
+ __asm__ ("movec %d0,%RAMBAR");
}
/*********************************************************************
diff -u rtems/c/src/lib/libbsp/m68k/mcf5329/ChangeLog:1.35 rtems/c/src/lib/libbsp/m68k/mcf5329/ChangeLog:1.36
--- rtems/c/src/lib/libbsp/m68k/mcf5329/ChangeLog:1.35 Wed Feb 9 06:09:16 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5329/ChangeLog Fri Feb 11 06:36:09 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/cfinit.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c:1.4 rtems/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c:1.5
--- rtems/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c:1.4 Sun Nov 29 08:59:41 2009
+++ rtems/c/src/lib/libbsp/m68k/mcf5329/startup/cfinit.c Fri Feb 11 06:36:10 2011
@@ -118,8 +118,8 @@
**********************************************************************/
static void disable_cache(void)
{
- asm("move.l #0x01000000,%d0");
- asm("movec %d0,%CACR");
+ __asm__ ("move.l #0x01000000,%d0");
+ __asm__ ("movec %d0,%CACR");
}
/*********************************************************************
@@ -182,13 +182,13 @@
* Cache is enabled in bspstart.c
*/
#if 0
- asm("move.l #0xa0000600,%d0");
- asm("movec %d0,%CACR");
+ __asm__ ("move.l #0xa0000600,%d0");
+ __asm__ ("movec %d0,%CACR");
#endif
- asm("move.l #0x4001c020,%d0");
- asm("movec %d0,%ACR0");
- asm("move.l #0x00000000,%d0");
- asm("movec %d0,%ACR1");
+ __asm__ ("move.l #0x4001c020,%d0");
+ __asm__ ("movec %d0,%ACR0");
+ __asm__ ("move.l #0x00000000,%d0");
+ __asm__ ("movec %d0,%ACR1");
}
/*********************************************************************
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspclean.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.9 c/src/lib/libbsp/m68k/mcf5225x/ChangeLog
M 1.2 c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c
M 1.113 c/src/lib/libbsp/m68k/mvme147/ChangeLog
M 1.11 c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c
diff -u rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.8 rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.9
--- rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog:1.8 Wed Feb 9 06:07:27 2011
+++ rtems/c/src/lib/libbsp/m68k/mcf5225x/ChangeLog Fri Feb 11 06:30:19 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspclean.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.1 rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.2
--- rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c:1.1 Mon Apr 5 12:06:57 2010
+++ rtems/c/src/lib/libbsp/m68k/mcf5225x/startup/bspclean.c Fri Feb 11 06:30:19 2011
@@ -26,7 +26,7 @@
{
printk("\nRTEMS exited!\n");
for (;;) {
- asm volatile (" nop ");
- asm volatile (" nop ");
+ __asm__ volatile (" nop ");
+ __asm__ volatile (" nop ");
}
}
diff -u rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.112 rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.113
--- rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog:1.112 Wed Feb 9 06:11:48 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme147/ChangeLog Fri Feb 11 06:36:11 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspclean.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.10 rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.11
--- rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c:1.10 Mon Jun 14 11:02:01 2010
+++ rtems/c/src/lib/libbsp/m68k/mvme147/startup/bspclean.c Fri Feb 11 06:36:11 2011
@@ -26,12 +26,12 @@
register volatile void *start_addr;
m68k_set_vbr( 0 ); /* restore 147Bug vectors */
- asm volatile( "trap #15" ); /* trap to 147Bug */
- asm volatile( ".short 0x63" ); /* return to 147Bug (.RETURN) */
+ __asm__ volatile( "trap #15" ); /* trap to 147Bug */
+ __asm__ volatile( ".short 0x63" ); /* return to 147Bug (.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) );
}
void bsp_cleanup( void )
@@ -40,5 +40,5 @@
pcc->timer2_int_control = 0; /* Disable Timer 2 */
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
- asm volatile( "trap #13" ); /* ensures SUPV mode */
+ __asm__ volatile( "trap #13" ); /* ensures SUPV mode */
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspclean.c, startup/page_table.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.126 c/src/lib/libbsp/m68k/mvme162/ChangeLog
M 1.15 c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c
M 1.8 c/src/lib/libbsp/m68k/mvme162/startup/page_table.c
diff -u rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.125 rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.126
--- rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog:1.125 Wed Feb 9 06:12:29 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme162/ChangeLog Fri Feb 11 06:37:55 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspclean.c, startup/page_table.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.14 rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.15
--- rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c:1.14 Wed Apr 28 14:43:33 2010
+++ rtems/c/src/lib/libbsp/m68k/mvme162/startup/bspclean.c Fri Feb 11 06:37:56 2011
@@ -36,8 +36,8 @@
m68k_set_vbr(0xFFE00000); /* restore 162Bug vectors */
#endif
- asm volatile( "trap #15" ); /* trap to 162Bug */
- asm volatile( ".short 0x63" ); /* return to 162Bug (.RETURN) */
+ __asm__ volatile( "trap #15" ); /* trap to 162Bug */
+ __asm__ volatile( ".short 0x63" ); /* return to 162Bug (.RETURN) */
/* restart program */
/*
* This does not work on the 162....
@@ -47,7 +47,7 @@
start_addr = start;
- asm volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
+ __asm__ volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );
}
#endif
}
@@ -55,5 +55,5 @@
void bsp_cleanup( void )
{
M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */
- asm volatile( "trap #13" ); /* insures SUPV mode */
+ __asm__ volatile( "trap #13" ); /* insures SUPV mode */
}
diff -u rtems/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c:1.7 rtems/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c:1.8
--- rtems/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c:1.7 Wed Apr 21 11:01:35 2004
+++ rtems/c/src/lib/libbsp/m68k/mvme162/startup/page_table.c Fri Feb 11 06:37:56 2011
@@ -8,7 +8,7 @@
* The following history is included verbatim from the submitter.
*
* Revision 1.8 1995/11/18 00:07:25 vaitl
- * Modified asm statements to get rid of the register hard-codes.
+ * Modified asm-statements to get rid of the register hard-codes.
*
* Revision 1.7 1995/10/27 21:00:32 vaitl
* Modified page table routines so application code can map
@@ -95,12 +95,12 @@
Ignore FC2 for match.
Noncachable.
Not write protected.*/
- asm volatile ("movec %0,%%dtt0\n\
+ __asm__ volatile ("movec %0,%%dtt0\n\
movec %0,%%itt0"
:: "d" (0x807fc040));
/* Point urp and srp at root page table. */
- asm volatile ("movec %0,%%urp\n\
+ __asm__ volatile ("movec %0,%%urp\n\
movec %0,%%srp"
:: "d" (BASE_TABLE_ADDR));
@@ -108,11 +108,11 @@
page_table_map((void *)0x20000,0x400000-0x20000,CACHE_COPYBACK);
/* Turn on paging with a 4 k page size.*/
- asm volatile ("movec %0,%%tc"
+ __asm__ volatile ("movec %0,%%tc"
:: "d" (0x8000));
/* Turn on the cache. */
- asm volatile ("movec %0,%%cacr"
+ __asm__ volatile ("movec %0,%%cacr"
:: "d" (0x80008000));
}
@@ -120,7 +120,7 @@
next_avail=(unsigned long *)BASE_TABLE_ADDR;
/* Turn off paging. Turn off the cache. Flush the cache. Tear down
the transparent translations. */
- asm volatile ("movec %0,%%tc\n\
+ __asm__ volatile ("movec %0,%%tc\n\
movec %0,%%cacr\n\
cpusha %%bc\n\
movec %0,%%dtt0\n\
@@ -191,7 +191,7 @@
}
/* Flush the ATC. Push and invalidate the cache. */
- asm volatile ("pflusha\n\
+ __asm__ volatile ("pflusha\n\
cpusha %bc");
return PTM_SUCCESS;
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* console/console.c, fatal/bspfatal.c, startup/bspclean.c,
startup/page_table.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.132 c/src/lib/libbsp/m68k/mvme167/ChangeLog
M 1.20 c/src/lib/libbsp/m68k/mvme167/console/console.c
M 1.10 c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c
M 1.8 c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c
M 1.8 c/src/lib/libbsp/m68k/mvme167/startup/page_table.c
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.131 rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.132
--- rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog:1.131 Wed Feb 9 06:13:10 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog Fri Feb 11 06:37:58 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * console/console.c, fatal/bspfatal.c, startup/bspclean.c,
+ startup/page_table.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/console/console.c:1.19 rtems/c/src/lib/libbsp/m68k/mvme167/console/console.c:1.20
--- rtems/c/src/lib/libbsp/m68k/mvme167/console/console.c:1.19 Tue Aug 3 09:16:00 2010
+++ rtems/c/src/lib/libbsp/m68k/mvme167/console/console.c Fri Feb 11 06:37:58 2011
@@ -1245,7 +1245,7 @@
*/
rtems_interrupt_disable( previous_level );
- asm volatile( "movew %1, -(%%sp)\n\t"/* Channel */
+ __asm__ volatile( "movew %1, -(%%sp)\n\t"/* Channel */
"trap #15\n\t" /* Trap to 167Bug */
".short 0x61\n\t" /* Code for .REDIR_I */
"trap #15\n\t" /* Trap to 167Bug */
@@ -1260,7 +1260,7 @@
}
/* Read the char and return it */
- asm volatile( "subq.l #2,%%a7\n\t" /* Space for result */
+ __asm__ volatile( "subq.l #2,%%a7\n\t" /* Space for result */
"trap #15\n\t" /* Trap to 167 Bug */
".short 0x00\n\t" /* Code for .INCHR */
"moveb (%%a7)+, %0" /* Pop char into c */
@@ -1296,7 +1296,7 @@
{
const char *endbuf = buf + len;
- asm volatile( "pea (%0)\n\t" /* endbuf */
+ __asm__ volatile( "pea (%0)\n\t" /* endbuf */
"pea (%1)\n\t" /* buf */
"movew #0x21, -(%%sp)\n\t" /* Code for .OUTSTR */
"movew %2, -(%%sp)\n\t" /* Channel */
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c:1.9 rtems/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c:1.10
--- rtems/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c:1.9 Tue Dec 8 10:48:26 2009
+++ rtems/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c Fri Feb 11 06:37:58 2011
@@ -82,7 +82,7 @@
lcsr->intr_ena = 0; /* disable interrupts */
m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */
- asm volatile( "movel %0, -(%%a7)\n\t"
+ __asm__ volatile( "movel %0, -(%%a7)\n\t"
"pea (%%a7)\n\t"
"pea (%1)\n\t"
"trap #15\n\t" /* trap to 167Bug (.WRITDLN) */
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.7 rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.8
--- rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c:1.7 Wed Apr 28 08:23:11 2010
+++ rtems/c/src/lib/libbsp/m68k/mvme167/startup/bspclean.c Fri Feb 11 06:37:58 2011
@@ -43,12 +43,12 @@
lcsr->intr_ena = 0; /* disable interrupts */
m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */
- asm volatile( "trap #15\n\t" /* trap to 167Bug */
+ __asm__ volatile( "trap #15\n\t" /* trap to 167Bug */
".short 0x63" ); /* return to 167Bug (.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) );
}
/*
@@ -77,5 +77,5 @@
void bsp_cleanup( void )
{
M68Kvec[ 45 ] = bsp_return_to_monitor_trap;
- asm volatile( "trap #13" );
+ __asm__ volatile( "trap #13" );
}
diff -u rtems/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c:1.7 rtems/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c:1.8
--- rtems/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c:1.7 Wed Apr 21 11:01:36 2004
+++ rtems/c/src/lib/libbsp/m68k/mvme167/startup/page_table.c Fri Feb 11 06:37:58 2011
@@ -120,7 +120,7 @@
}
/* do it ! */
- asm volatile("movec %0, %%tc\n\t" /* turn off paged address translation */
+ __asm__ volatile("movec %0, %%tc\n\t" /* turn off paged address translation */
"movec %0, %%cacr\n\t" /* disable both caches */
"cinva %%bc\n\t" /* clear both caches */
"movec %1,%%dtt0\n\t" /* block address translation on */
@@ -145,7 +145,7 @@
*/
void page_table_teardown( void )
{
- asm volatile ("movec %0,%%tc\n\t"
+ __asm__ volatile ("movec %0,%%tc\n\t"
"movec %0,%%cacr\n\t"
"cpusha %%bc\n\t"
"movec %0,%%dtt0\n\t"
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, startup/m68k-stub.c, startup/trace.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.130 c/src/lib/libbsp/m68k/ods68302/ChangeLog
M 1.27 c/src/lib/libbsp/m68k/ods68302/include/bsp.h
M 1.13 c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
M 1.4 c/src/lib/libbsp/m68k/ods68302/startup/trace.c
diff -u rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.129 rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.130
--- rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog:1.129 Wed Feb 9 02:38:14 2011
+++ rtems/c/src/lib/libbsp/m68k/ods68302/ChangeLog Fri Feb 11 06:38:31 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h, startup/m68k-stub.c, startup/trace.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/ods68302/include/bsp.h:1.26 rtems/c/src/lib/libbsp/m68k/ods68302/include/bsp.h:1.27
--- rtems/c/src/lib/libbsp/m68k/ods68302/include/bsp.h:1.26 Fri Apr 30 11:44:17 2010
+++ rtems/c/src/lib/libbsp/m68k/ods68302/include/bsp.h Fri Feb 11 06:38:31 2011
@@ -45,7 +45,7 @@
#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" \
diff -u rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.12 rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.13
--- rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c:1.12 Mon Jun 21 21:03:36 2010
+++ rtems/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c Fri Feb 11 06:38:31 2011
@@ -233,12 +233,12 @@
/* do an fsave, then remember the address to begin a restore from */
#define SAVE_FP_REGS() \
- asm(" fsave %a0 at -"); \
- asm(" fmovemx %fp0-%fp7,registers+72"); \
- asm(" fmoveml %fpcr/%fpsr/%fpi,registers+168");
+ __asm__ (" fsave %a0 at -"); \
+ __asm__ (" fmovemx %fp0-%fp7,registers+72"); \
+ __asm__ (" fmoveml %fpcr/%fpsr/%fpi,registers+168");
#define RESTORE_FP_REGS() \
-asm(" \n\
+__asm__ (" \n\
fmoveml registers+168,%fpcr/%fpsr/%fpi \n\
fmovemx registers+72,%fp0-%fp7 \n\
cmpl #-1,%a0@ | skip frestore flag set ? \n\
@@ -257,7 +257,7 @@
void return_to_super(void);
void return_to_user(void);
-asm("\n\
+__asm__ ("\n\
.text\n\
\n\
.globl return_to_super\n\
@@ -292,19 +292,19 @@
dbf %d0,copyUserLoop \n\
");
RESTORE_FP_REGS()
-asm("\n\
+__asm__ ("\n\
moveml registers,%d0-%d7/%a0-%a6\n\
rte /* pop and go! */\n\
");
-#define DISABLE_INTERRUPTS() asm(" oriw #0x0700,%sr");
-#define BREAKPOINT() asm(" trap #1");
+#define DISABLE_INTERRUPTS() __asm__ (" oriw #0x0700,%sr");
+#define BREAKPOINT() __asm__ (" trap #1");
/* this function is called immediately when a level 7 interrupt occurs */
/* if the previous interrupt level was 7 then we're already servicing */
/* this interrupt and an rte is in order to return to the debugger. */
/* For the 68000, the offset for sr is 6 due to the jsr return address */
-asm("\n\
+__asm__ ("\n\
.text\n\
.globl _debug_level7\n\
.align 4\n\
@@ -314,15 +314,15 @@
");
#if (defined(__mc68020__) && !defined(__mcpu32__)) || defined(__mc68332__)
-asm("\n\
+__asm__ ("\n\
movew %sp@(2),%d0\n\
");
#else
-asm("\n\
+__asm__ ("\n\
movew %sp@(6),%d0\n\
");
#endif
-asm("\n\
+__asm__ ("\n\
andiw #0x700,%d0\n\
cmpiw #0x700,%d0\n\
beq _already7\n\
@@ -332,10 +332,10 @@
movew %sp at +,%d0\n\
");
#if defined (__mc68000__) && !(defined(__mc68020__) && !defined(__mcpu32__))
-asm("\n\
+__asm__ ("\n\
lea %sp@(4),%sp"); /* pull off 68000 return address */
#endif
-asm("\n\
+__asm__ ("\n\
rte\n\
");
@@ -357,7 +357,7 @@
*
*
*/
-asm(" \n\
+__asm__ (" \n\
.text\n\
\n\
.globl _catchException\n\
@@ -367,12 +367,12 @@
DISABLE_INTERRUPTS();
-asm("\n\
+__asm__ ("\n\
moveml %d0-%d7/%a0-%a6,registers /* save registers */\n\
movel lastFrame,%a0 /* last frame pointer */\n\
");
SAVE_FP_REGS();
-asm("\n\
+__asm__ ("\n\
lea registers,%a5 /* get address of registers */\n\
movew %sp@,%d1 /* get status register */\n\
movew %d1,%a5@(66) /* save sr */ \n\
@@ -454,20 +454,20 @@
* Return Address MSWord
* Return Address LSWord
*/
-asm("\n\
+__asm__ ("\n\
.text\n\
.globl _catchException\n\
.align 4\n\
_catchException:\n\
");
DISABLE_INTERRUPTS();
-asm("\n\
+__asm__ ("\n\
moveml %d0-%d7/%a0-%a6,registers /* save registers */\n\
movel lastFrame,%a0 /* last frame pointer */\n\
");
SAVE_FP_REGS();
-asm("\n\
+__asm__ ("\n\
moveq.l #0,%d2\n\
movew %sp at +,%d2\n\
lea registers,%a5 /* get address of registers */\n\
@@ -531,13 +531,13 @@
* stack pointer into an area reserved for debugger use in case the
* breakpoint happened in supervisor mode.
*/
-asm("remcomHandler:");
-asm(" addl #4,%sp"); /* pop off return address */
-asm(" movel %sp at +,%d0"); /* get the exception number */
-asm(" movel stackPtr,%sp"); /* move to remcom stack area */
-asm(" movel %d0,%sp at -"); /* push exception onto stack */
-asm(" jbsr handle_exception"); /* this never returns */
-asm(" rts"); /* return */
+__asm__ ("remcomHandler:");
+__asm__ (" addl #4,%sp"); /* pop off return address */
+__asm__ (" movel %sp at +,%d0"); /* get the exception number */
+__asm__ (" movel stackPtr,%sp"); /* move to remcom stack area */
+__asm__ (" movel %d0,%sp at -"); /* push exception onto stack */
+__asm__ (" jbsr handle_exception"); /* this never returns */
+__asm__ (" rts"); /* return */
void _returnFromException(Frame *frame)
{
diff -u rtems/c/src/lib/libbsp/m68k/ods68302/startup/trace.c:1.3 rtems/c/src/lib/libbsp/m68k/ods68302/startup/trace.c:1.4
--- rtems/c/src/lib/libbsp/m68k/ods68302/startup/trace.c:1.3 Wed Apr 21 05:42:54 2004
+++ rtems/c/src/lib/libbsp/m68k/ods68302/startup/trace.c Fri Feb 11 06:38:31 2011
@@ -90,7 +90,7 @@
unsigned int index;
unsigned char ch;
- asm volatile(" orw #0x0700,%sr");
+ __asm__ volatile(" orw #0x0700,%sr");
debug_port_banner();
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* hw_init/hw_init.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.108 c/src/lib/libbsp/sh/gensh4/ChangeLog
M 1.5 c/src/lib/libbsp/sh/gensh4/hw_init/hw_init.c
diff -u rtems/c/src/lib/libbsp/sh/gensh4/ChangeLog:1.107 rtems/c/src/lib/libbsp/sh/gensh4/ChangeLog:1.108
--- rtems/c/src/lib/libbsp/sh/gensh4/ChangeLog:1.107 Wed Feb 2 09:00:30 2011
+++ rtems/c/src/lib/libbsp/sh/gensh4/ChangeLog Fri Feb 11 06:40:16 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * hw_init/hw_init.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/sh/gensh4/hw_init/hw_init.c:1.4 rtems/c/src/lib/libbsp/sh/gensh4/hw_init/hw_init.c:1.5
--- rtems/c/src/lib/libbsp/sh/gensh4/hw_init/hw_init.c:1.4 Fri Apr 16 16:51:30 2004
+++ rtems/c/src/lib/libbsp/sh/gensh4/hw_init/hw_init.c Fri Feb 11 06:40:18 2011
@@ -279,7 +279,7 @@
SH7750_CCR);
break;
case SH4_BOOT_MODE_IPL:
- asm volatile (
+ __asm__ volatile (
"mov #6, r0\n"
"xor r4, r4\n"
"trapa #0x3f\n"
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* irq/discovery_pic.c, network/if_em/rtemscompat_defs.h,
* network/if_gfe/rtemscompat_defs.h, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.17 c/src/lib/libbsp/powerpc/beatnik/ChangeLog
M 1.2 c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c
M 1.2 c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h
M 1.2 c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h
M 1.5 c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.16 rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.17
--- rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog:1.16 Wed Feb 2 08:59:54 2011
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/ChangeLog Fri Feb 11 06:44:28 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * irq/discovery_pic.c, network/if_em/rtemscompat_defs.h,
+ * network/if_gfe/rtemscompat_defs.h, startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c:1.1 rtems/c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c:1.2
--- rtems/c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c:1.1 Thu Dec 3 10:56:44 2009
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/irq/discovery_pic.c Fri Feb 11 06:44:28 2011
@@ -75,7 +75,7 @@
#define NUM_INTR_REGS 3
-#define SYNC() asm volatile("sync")
+#define SYNC() __asm__ volatile("sync")
/* How many times should the ISR dispatcher check for
* pending interrupts until it decides that something's
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h:1.1 rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h:1.2
--- rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h:1.1 Thu Dec 3 10:56:39 2009
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_em/rtemscompat_defs.h Fri Feb 11 06:44:28 2011
@@ -100,7 +100,7 @@
#define bus_dmamap_unload(args...) do {} while (0)
#ifdef __PPC__
-#define bus_dmamap_sync(args...) do { asm volatile("sync":::"memory"); } while (0)
+#define bus_dmamap_sync(args...) do { __asm__ volatile("sync":::"memory"); } while (0)
#else
#define bus_dmamap_sync(args...) do {} while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h:1.1 rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h:1.2
--- rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h:1.1 Thu Dec 3 10:56:25 2009
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_gfe/rtemscompat_defs.h Fri Feb 11 06:44:28 2011
@@ -89,7 +89,7 @@
#define BUS_DMA_NOCACHE 0xdeadbeef
#ifdef __PPC__
-#define bus_dmamap_sync(args...) do { asm volatile("sync":::"memory"); } while(0)
+#define bus_dmamap_sync(args...) do { __asm__ volatile("sync":::"memory"); } while(0)
#else
#error "Dont' know how to sync memory on your CPU"
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.4 rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.5
--- rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c:1.4 Wed Jan 26 06:35:17 2011
+++ rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspstart.c Fri Feb 11 06:44:28 2011
@@ -233,7 +233,7 @@
* so there is no need to set it in r1 again... It is just for info
* so that it can be printed without accessing R1.
*/
- asm volatile("mr %0, 1":"=r"(stack));
+ __asm__ volatile("mr %0, 1":"=r"(stack));
/* tag the bottom (T. Straumann 6/36/2001 <strauman at slac.stanford.edu>) */
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* console/console.c, console/ns16550cfg.c, console/polled_io.c,
include/bsp.h, include/tm27.h, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.91 c/src/lib/libbsp/powerpc/ep1a/ChangeLog
M 1.8 c/src/lib/libbsp/powerpc/ep1a/console/console.c
M 1.6 c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.c
M 1.5 c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c
M 1.14 c/src/lib/libbsp/powerpc/ep1a/include/bsp.h
M 1.4 c/src/lib/libbsp/powerpc/ep1a/include/tm27.h
M 1.25 c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.90 rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.91
--- rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.90 Wed Feb 2 08:59:55 2011
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog Fri Feb 11 06:44:30 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * console/console.c, console/ns16550cfg.c, console/polled_io.c,
+ include/bsp.h, include/tm27.h, startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/console/console.c:1.7 rtems/c/src/lib/libbsp/powerpc/ep1a/console/console.c:1.8
--- rtems/c/src/lib/libbsp/powerpc/ep1a/console/console.c:1.7 Fri Aug 20 11:03:51 2010
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/console/console.c Fri Feb 11 06:44:30 2011
@@ -259,12 +259,12 @@
if ('\n'==c){
*ptr = '\r';
- asm volatile("sync");
+ __asm__ volatile("sync");
for (i=0;i<0x0fff;i++);
}
*ptr = c;
- asm volatile("sync");
+ __asm__ volatile("sync");
for (i=0;i<0x0fff;i++);
}
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.c:1.5 rtems/c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.c:1.6
--- rtems/c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.c:1.5 Sun Nov 29 22:25:26 2009
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/console/ns16550cfg.c Fri Feb 11 06:44:30 2011
@@ -29,7 +29,7 @@
volatile struct uart_reg *p = (volatile struct uart_reg *)ulCtrlPort;
uint8_t ucData;
ucData = p[ucRegNum].reg;
- asm volatile("sync");
+ __asm__ volatile("sync");
return ucData;
}
@@ -42,9 +42,9 @@
volatile struct uart_reg *p = (volatile struct uart_reg *)ulCtrlPort;
volatile int i;
p[ucRegNum].reg = ucData;
- asm volatile("sync");
- asm volatile("isync");
- asm volatile("eieio");
+ __asm__ volatile("sync");
+ __asm__ volatile("isync");
+ __asm__ volatile("eieio");
for (i=0;i<0x08ff;i++)
- asm volatile("isync");
+ __asm__ volatile("isync");
}
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c:1.4 rtems/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c:1.5
--- rtems/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c:1.4 Fri Jan 28 14:29:51 2011
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/console/polled_io.c Fri Feb 11 06:44:30 2011
@@ -925,7 +925,7 @@
/* Necessary to avoid including a library, and GCC won't do this inline. */
#define div10(num, rmd) \
do { u32 t1, t2, t3; \
- asm("lis %4,0xcccd; " \
+ __asm__ ("lis %4,0xcccd; " \
"addi %4,%4,0xffffcccd; " /* Build 0xcccccccd */ \
"mulhwu %3,%0+1,%4; " /* (num.l*cst.l).h */ \
"mullw %2,%0,%4; " /* (num.h*cst.l).l */ \
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h:1.13 rtems/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h:1.14
--- rtems/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h:1.13 Sun Nov 29 22:25:26 2009
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h Fri Feb 11 06:44:30 2011
@@ -174,7 +174,7 @@
((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value)))
#define Processor_Synchronize() \
- asm(" eieio ")
+ __asm__ (" eieio ")
extern void BSP_panic(char *s);
extern int BSP_disconnect_clock_handler (void);
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/include/tm27.h:1.3 rtems/c/src/lib/libbsp/powerpc/ep1a/include/tm27.h:1.4
--- rtems/c/src/lib/libbsp/powerpc/ep1a/include/tm27.h:1.3 Thu Oct 2 12:27:07 2008
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/include/tm27.h Fri Feb 11 06:44:30 2011
@@ -39,22 +39,22 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 8; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c:1.24 rtems/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c:1.25
--- rtems/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c:1.24 Sun Nov 29 22:25:26 2009
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c Fri Feb 11 06:44:30 2011
@@ -184,18 +184,18 @@
unsigned int get_eumbbar(void) {
register int a, e;
- asm volatile( "lis %0,0xfec0; ori %0,%0,0x0000": "=r" (a) );
- asm volatile("sync");
+ __asm__ volatile( "lis %0,0xfec0; ori %0,%0,0x0000": "=r" (a) );
+ __asm__ volatile("sync");
- asm volatile("lis %0,0x8000; ori %0,%0,0x0078": "=r"(e) );
- asm volatile("stwbrx %0,0x0,%1": "=r"(e): "r"(a));
- asm volatile("sync");
+ __asm__ volatile("lis %0,0x8000; ori %0,%0,0x0078": "=r"(e) );
+ __asm__ volatile("stwbrx %0,0x0,%1": "=r"(e): "r"(a));
+ __asm__ volatile("sync");
- asm volatile("lis %0,0xfee0; ori %0,%0,0x0000": "=r" (a) );
- asm volatile("sync");
+ __asm__ volatile("lis %0,0xfee0; ori %0,%0,0x0000": "=r" (a) );
+ __asm__ volatile("sync");
- asm volatile("lwbrx %0,0x0,%1": "=r" (e): "r" (a));
- asm volatile("isync");
+ __asm__ volatile("lwbrx %0,0x0,%1": "=r" (e): "r" (a));
+ __asm__ volatile("isync");
return e;
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/cpuinit.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.103 c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
M 1.13 c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c
diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.102 rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.103
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog:1.102 Thu Feb 10 06:56:55 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog Fri Feb 11 06:46:31 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/cpuinit.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-10 Sebastian Huber <sebastian.huber at embedded-brains.de>
* configure.ac: Added GEN83XX_ENABLE_INTERRUPT_NESTING BSP option.
diff -u rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.12 rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.13
--- rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c:1.12 Thu Dec 30 07:16:41 2010
+++ rtems/c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c Fri Feb 11 06:46:31 2011
@@ -131,12 +131,12 @@
/* Clear segment registers */
for (i = 0;i < 16;i++) {
- asm volatile( "mtsrin %0, %1\n" : : "r" (i * 0x1000), "r" (i << (31 - 3)));
+ __asm__ volatile( "mtsrin %0, %1\n" : : "r" (i * 0x1000), "r" (i << (31 - 3)));
}
/* Clear TLBs */
for (i = 0;i < 32;i++) {
- asm volatile( "tlbie %0\n" : : "r" (i << (31 - 19)));
+ __asm__ volatile( "tlbie %0\n" : : "r" (i << (31 - 19)));
}
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* console/console.c, irq/irq.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.175 c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
M 1.23 c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
M 1.19 c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c
diff -u rtems/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog:1.174 rtems/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog:1.175
--- rtems/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog:1.174 Wed Feb 2 09:00:02 2011
+++ rtems/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog Fri Feb 11 06:46:34 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * console/console.c, irq/irq.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c:1.22 rtems/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c:1.23
--- rtems/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c:1.22 Tue Aug 3 09:16:36 2010
+++ rtems/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c Fri Feb 11 06:46:34 2011
@@ -174,7 +174,7 @@
simask = m8xx.simask;
/* Check for a char in the input FIFO using .CIO_STAT */
- asm volatile( "li 10,0x202\n\
+ __asm__ volatile( "li 10,0x202\n\
mr 3, %0\n\
mr 4, %1\n\
sc"
@@ -186,7 +186,7 @@
input_params.inbuf = &c;
input_params.nbytes_requested = 1;
- asm volatile( "li 10,0x200 /* Code for .CIO_READ */\n\
+ __asm__ volatile( "li 10,0x200 /* Code for .CIO_READ */\n\
mr 3, %0 /* Address of input_params */\n\
mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
@@ -284,7 +284,7 @@
/* Wait for space in the output buffer */
do {
/* Check for space in the output FIFO */
- asm volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\
+ __asm__ volatile( "li 10,0x202 /* Code for .CIO_STAT */\n\
mr 3, %0 /* Address of input_params */\n\
mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
@@ -298,7 +298,7 @@
input_params.outbuf = &buf[i];
input_params.nbytes_to_output = len - i;
- asm volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\
+ __asm__ volatile( "li 10,0x201 /* Code for .CIO_WRITE */\n\
mr 3, %0 /* Address of input_params */\n\
mr 4, %1 /* Address of output_params */\n\
sc" /* Call EPPCBUG */
diff -u rtems/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c:1.18 rtems/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c:1.19
--- rtems/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c:1.18 Fri Jan 28 14:29:51 2011
+++ rtems/c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c Fri Feb 11 06:46:34 2011
@@ -222,7 +222,7 @@
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
_CPU_MSR_GET(msr);
new_msr = msr | MSR_EE;
@@ -236,7 +236,7 @@
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
if (cpmIntr) {
irq -= BSP_CPM_IRQ_LOWEST_OFFSET;
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* network/smsc9218i.c, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.64 c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog
M 1.6 c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
M 1.19 c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.63 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.64
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog:1.63 Wed Feb 2 09:00:06 2011
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/ChangeLog Fri Feb 11 06:46:36 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * network/smsc9218i.c, startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c:1.5 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c:1.6
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c:1.5 Thu May 20 09:19:41 2010
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c Fri Feb 11 06:46:36 2011
@@ -920,7 +920,7 @@
data_length
);
- asm volatile ( "sync");
+ __asm__ volatile ( "sync");
/* Remember fragement */
jc->fragment_table [c] = m;
diff -u rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.18 rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.19
--- rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c:1.18 Mon Jan 31 09:49:13 2011
+++ rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c Fri Feb 11 06:46:36 2011
@@ -547,7 +547,7 @@
PPC_SET_SPECIAL_PURPOSE_REGISTER( FSL_EIS_MAS1, mmu_setup[i].MAS1.R);
PPC_SET_SPECIAL_PURPOSE_REGISTER( FSL_EIS_MAS2, mmu_setup[i].MAS2.R);
PPC_SET_SPECIAL_PURPOSE_REGISTER( FSL_EIS_MAS3, mmu_setup[i].MAS3.R);
- asm volatile ("tlbwe");
+ __asm__ volatile ("tlbwe");
}
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* PCI_bus/PCI.c, console/console.c, include/bsp.h, include/tm27.h,
startup/Hwr_init.c, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.186 c/src/lib/libbsp/powerpc/score603e/ChangeLog
M 1.11 c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c
M 1.19 c/src/lib/libbsp/powerpc/score603e/console/console.c
M 1.33 c/src/lib/libbsp/powerpc/score603e/include/bsp.h
M 1.6 c/src/lib/libbsp/powerpc/score603e/include/tm27.h
M 1.12 c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
M 1.37 c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/ChangeLog:1.185 rtems/c/src/lib/libbsp/powerpc/score603e/ChangeLog:1.186
--- rtems/c/src/lib/libbsp/powerpc/score603e/ChangeLog:1.185 Wed Feb 9 02:29:24 2011
+++ rtems/c/src/lib/libbsp/powerpc/score603e/ChangeLog Fri Feb 11 06:47:19 2011
@@ -1,3 +1,9 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * PCI_bus/PCI.c, console/console.c, include/bsp.h, include/tm27.h,
+ startup/Hwr_init.c, startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c:1.10 rtems/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c:1.11
--- rtems/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c:1.10 Tue May 5 11:24:03 2009
+++ rtems/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c Fri Feb 11 06:47:19 2011
@@ -29,8 +29,8 @@
*/
void PCI_bus_delay (void)
{
- asm(" nop");
- asm(" nop");
+ __asm__ (" nop");
+ __asm__ (" nop");
}
/*
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/console/console.c:1.18 rtems/c/src/lib/libbsp/powerpc/score603e/console/console.c:1.19
--- rtems/c/src/lib/libbsp/powerpc/score603e/console/console.c:1.18 Sun Aug 15 18:31:05 2010
+++ rtems/c/src/lib/libbsp/powerpc/score603e/console/console.c Fri Feb 11 06:47:19 2011
@@ -415,13 +415,13 @@
if ('\n'==c){
rtems_interrupt_disable( isrlevel );
outbyte_polled_85c30( csr, '\r' );
- asm volatile("isync");
+ __asm__ volatile("isync");
rtems_interrupt_enable( isrlevel );
}
rtems_interrupt_disable( isrlevel );
outbyte_polled_85c30( csr, c );
- asm volatile("isync");
+ __asm__ volatile("isync");
rtems_interrupt_enable( isrlevel );
}
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/include/bsp.h:1.32 rtems/c/src/lib/libbsp/powerpc/score603e/include/bsp.h:1.33
--- rtems/c/src/lib/libbsp/powerpc/score603e/include/bsp.h:1.32 Sun Nov 29 22:33:54 2009
+++ rtems/c/src/lib/libbsp/powerpc/score603e/include/bsp.h Fri Feb 11 06:47:19 2011
@@ -67,7 +67,7 @@
SCORE603E_BRD_FLASH_DISABLE_MASK)
#define Processor_Synchronize() \
- asm volatile(" eieio ")
+ __asm__ volatile(" eieio ")
/* Constants */
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/include/tm27.h:1.5 rtems/c/src/lib/libbsp/powerpc/score603e/include/tm27.h:1.6
--- rtems/c/src/lib/libbsp/powerpc/score603e/include/tm27.h:1.5 Tue May 5 11:24:04 2009
+++ rtems/c/src/lib/libbsp/powerpc/score603e/include/tm27.h Fri Feb 11 06:47:19 2011
@@ -45,22 +45,22 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 8; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c:1.11 rtems/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c:1.12
--- rtems/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c:1.11 Tue May 5 11:24:04 2009
+++ rtems/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c Fri Feb 11 06:47:19 2011
@@ -94,7 +94,7 @@
#define PPC_Get_HID0( _value ) \
do { \
_value = 0; /* to avoid warnings */ \
- asm volatile( \
+ __asm__ volatile( \
"mfspr %0, 0x3f0;" /* get HID0 */ \
"isync" \
: "=r" (_value) \
@@ -104,7 +104,7 @@
#define PPC_Set_HID0( _value ) \
do { \
- asm volatile( \
+ __asm__ volatile( \
"isync;" \
"mtspr 0x3f0, %0;" /* load HID0 */ \
"isync" \
diff -u rtems/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c:1.36 rtems/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c:1.37
--- rtems/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c:1.36 Wed Apr 28 15:25:23 2010
+++ rtems/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c Fri Feb 11 06:47:19 2011
@@ -213,7 +213,7 @@
msr_value = 0x2030;
_CPU_MSR_SET( msr_value );
- asm volatile("sync; isync");
+ __asm__ volatile("sync; isync");
/*
* initialize the device driver parameters
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/tm27.h, irq/irq.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.155 c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
M 1.4 c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h
M 1.23 c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c
diff -u rtems/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog:1.154 rtems/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog:1.155
--- rtems/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog:1.154 Wed Feb 2 09:00:08 2011
+++ rtems/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog Fri Feb 11 06:48:37 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/tm27.h, irq/irq.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h:1.3 rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h:1.4
--- rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h:1.3 Tue Sep 30 10:47:34 2008
+++ rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/tm27.h Fri Feb 11 06:48:37 2011
@@ -35,7 +35,7 @@
BSP_install_rtems_irq_handler (&scIrqData); \
} while(0)
-#define Cause_tm27_intr() asm volatile ("sc")
+#define Cause_tm27_intr() __asm__ volatile ("sc")
#define Clear_tm27_intr() /* empty */
diff -u rtems/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c:1.22 rtems/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c:1.23
--- rtems/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c:1.22 Fri Jan 28 14:29:51 2011
+++ rtems/c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq.c Fri Feb 11 06:48:37 2011
@@ -278,7 +278,7 @@
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
/* re-enable external exceptions */
_CPU_MSR_GET(msr);
@@ -295,7 +295,7 @@
* make sure, that the masking operations in
* ICTL and MSR are executed in order
*/
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
/* restore interrupt masks */
m8260.simr_h = old_simr_h;
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* network/tsec.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.54 c/src/lib/libbsp/powerpc/mvme3100/ChangeLog
M 1.12 c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c
diff -u rtems/c/src/lib/libbsp/powerpc/mvme3100/ChangeLog:1.53 rtems/c/src/lib/libbsp/powerpc/mvme3100/ChangeLog:1.54
--- rtems/c/src/lib/libbsp/powerpc/mvme3100/ChangeLog:1.53 Wed Feb 2 09:00:10 2011
+++ rtems/c/src/lib/libbsp/powerpc/mvme3100/ChangeLog Fri Feb 11 06:48:40 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * network/tsec.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c:1.11 rtems/c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c:1.12
--- rtems/c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c:1.11 Tue Feb 9 19:59:57 2010
+++ rtems/c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c Fri Feb 11 06:48:40 2011
@@ -442,7 +442,7 @@
asm volatile("sync":::"memory");
}
-#define EIEIO(mem) do { asm volatile("eieio"); } while (0)
+#define EIEIO(mem) do { __asm__ volatile("eieio"); } while (0)
#else
#error "memory barrier not implemented for your CPU architecture"
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, include/tm27.h, startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.183 c/src/lib/libbsp/powerpc/psim/ChangeLog
M 1.28 c/src/lib/libbsp/powerpc/psim/include/bsp.h
M 1.5 c/src/lib/libbsp/powerpc/psim/include/tm27.h
M 1.42 c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/powerpc/psim/ChangeLog:1.182 rtems/c/src/lib/libbsp/powerpc/psim/ChangeLog:1.183
--- rtems/c/src/lib/libbsp/powerpc/psim/ChangeLog:1.182 Wed Feb 2 09:00:13 2011
+++ rtems/c/src/lib/libbsp/powerpc/psim/ChangeLog Fri Feb 11 06:49:35 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h, include/tm27.h, startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h:1.27 rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h:1.28
--- rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h:1.27 Fri Jan 28 14:29:51 2011
+++ rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h Fri Feb 11 06:49:35 2011
@@ -65,7 +65,7 @@
/* macros */
#define Processor_Synchronize() \
- asm(" eieio ")
+ __asm__ (" eieio ")
struct rtems_bsdnet_ifconfig;
diff -u rtems/c/src/lib/libbsp/powerpc/psim/include/tm27.h:1.4 rtems/c/src/lib/libbsp/powerpc/psim/include/tm27.h:1.5
--- rtems/c/src/lib/libbsp/powerpc/psim/include/tm27.h:1.4 Wed May 11 07:31:26 2005
+++ rtems/c/src/lib/libbsp/powerpc/psim/include/tm27.h Fri Feb 11 06:49:35 2011
@@ -42,23 +42,23 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 1; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c:1.41 rtems/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c:1.42
--- rtems/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c:1.41 Sun Nov 15 16:37:19 2009
+++ rtems/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c Fri Feb 11 06:49:35 2011
@@ -137,6 +137,6 @@
setdbat(2, 0xc<<24, 0xc<<24, 1<<24, IO_PAGE);
_write_MSR(_read_MSR() | MSR_DR | MSR_IR);
- asm volatile("sync; isync");
+ __asm__ volatile("sync; isync");
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspstart.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.45 c/src/lib/libbsp/m68k/genmcf548x/ChangeLog
M 1.8 c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c
M 1.19 c/src/lib/libbsp/powerpc/qemuppc/ChangeLog
M 1.5 c/src/lib/libbsp/powerpc/qemuppc/startup/bspstart.c
diff -u rtems/c/src/lib/libbsp/m68k/genmcf548x/ChangeLog:1.44 rtems/c/src/lib/libbsp/m68k/genmcf548x/ChangeLog:1.45
--- rtems/c/src/lib/libbsp/m68k/genmcf548x/ChangeLog:1.44 Wed Feb 9 06:05:07 2011
+++ rtems/c/src/lib/libbsp/m68k/genmcf548x/ChangeLog Fri Feb 11 06:30:11 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c:1.7 rtems/c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c:1.8
--- rtems/c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c:1.7 Thu Feb 25 05:01:35 2010
+++ rtems/c/src/lib/libbsp/m68k/genmcf548x/startup/bspstart.c Fri Feb 11 06:30:12 2011
@@ -66,8 +66,8 @@
/*
* CPU-space access
*/
-#define m68k_set_acr2(_acr2) asm volatile ("movec %0,#0x0005" : : "d" (_acr2))
-#define m68k_set_acr3(_acr3) asm volatile ("movec %0,#0x0007" : : "d" (_acr3))
+#define m68k_set_acr2(_acr2) __asm__ volatile ("movec %0,#0x0005" : : "d" (_acr2))
+#define m68k_set_acr3(_acr3) __asm__ volatile ("movec %0,#0x0007" : : "d" (_acr3))
/*
* Set initial cacr mode, mainly enables branch/intruction/data cache and
@@ -160,10 +160,10 @@
{
uint32_t a = (uint32_t) addr & ~0x3;
- asm volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x0));
- asm volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x1));
- asm volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x2));
- asm volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x3));
+ __asm__ volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x0));
+ __asm__ volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x1));
+ __asm__ volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x2));
+ __asm__ volatile ("cpushl %%ic,(%0)" :: "a" (a | 0x3));
}
void _CPU_cache_enable_data(void)
@@ -185,20 +185,20 @@
{
uint32_t a = (uint32_t) addr & ~0x3;
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x0));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x1));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x2));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x3));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x0));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x1));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x2));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x3));
}
void _CPU_cache_flush_1_data_line( const void *addr)
{
uint32_t a = (uint32_t) addr & ~0x3;
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x0));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x1));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x2));
- asm volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x3));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x0));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x1));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x2));
+ __asm__ volatile ("cpushl %%dc,(%0)" :: "a" (a | 0x3));
}
void _CPU_cache_flush_entire_data( void)
diff -u rtems/c/src/lib/libbsp/powerpc/qemuppc/ChangeLog:1.18 rtems/c/src/lib/libbsp/powerpc/qemuppc/ChangeLog:1.19
--- rtems/c/src/lib/libbsp/powerpc/qemuppc/ChangeLog:1.18 Wed Feb 2 09:00:16 2011
+++ rtems/c/src/lib/libbsp/powerpc/qemuppc/ChangeLog Fri Feb 11 06:49:36 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspstart.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/qemuppc/startup/bspstart.c:1.4 rtems/c/src/lib/libbsp/powerpc/qemuppc/startup/bspstart.c:1.5
--- rtems/c/src/lib/libbsp/powerpc/qemuppc/startup/bspstart.c:1.4 Sun Nov 29 22:34:19 2009
+++ rtems/c/src/lib/libbsp/powerpc/qemuppc/startup/bspstart.c Fri Feb 11 06:49:36 2011
@@ -124,6 +124,6 @@
setdbat(2, 0xc<<24, 0xc<<24, 1<<24, IO_PAGE);
_write_MSR(_read_MSR() | MSR_DR | MSR_IR);
- asm volatile("sync; isync");
+ __asm__ volatile("sync; isync");
#endif
}
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/bsp.h, include/tm27.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.127 c/src/lib/libbsp/powerpc/mvme5500/ChangeLog
M 1.21 c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
M 1.3 c/src/lib/libbsp/powerpc/mvme5500/include/tm27.h
diff -u rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.126 rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.127
--- rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog:1.126 Wed Feb 2 09:00:11 2011
+++ rtems/c/src/lib/libbsp/powerpc/mvme5500/ChangeLog Fri Feb 11 06:50:48 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/bsp.h, include/tm27.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h:1.20 rtems/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h:1.21
--- rtems/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h:1.20 Fri Jan 28 14:29:51 2011
+++ rtems/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h Fri Feb 11 06:50:48 2011
@@ -168,20 +168,20 @@
static inline void lwmemBar()
{
- asm volatile("lwsync":::"memory");
+ __asm__ volatile("lwsync":::"memory");
}
static inline void io_flush()
{
- asm volatile("isync":::"memory");
+ __asm__ volatile("isync":::"memory");
}
static inline void memBar()
{
- asm volatile("sync":::"memory");
+ __asm__ volatile("sync":::"memory");
}
static inline void ioBar()
{
- asm volatile("eieio":::"memory");
+ __asm__ volatile("eieio":::"memory");
}
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/mvme5500/include/tm27.h:1.2 rtems/c/src/lib/libbsp/powerpc/mvme5500/include/tm27.h:1.3
--- rtems/c/src/lib/libbsp/powerpc/mvme5500/include/tm27.h:1.2 Fri May 20 14:22:26 2005
+++ rtems/c/src/lib/libbsp/powerpc/mvme5500/include/tm27.h Fri Feb 11 06:50:48 2011
@@ -42,23 +42,23 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 1; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* startup/bspstart.c, timer/timer.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.67 c/src/lib/libbsp/mips/csb350/ChangeLog
M 1.13 c/src/lib/libbsp/mips/csb350/startup/bspstart.c
M 1.11 c/src/lib/libbsp/mips/csb350/timer/timer.c
diff -u rtems/c/src/lib/libbsp/mips/csb350/ChangeLog:1.66 rtems/c/src/lib/libbsp/mips/csb350/ChangeLog:1.67
--- rtems/c/src/lib/libbsp/mips/csb350/ChangeLog:1.66 Wed Feb 9 00:41:40 2011
+++ rtems/c/src/lib/libbsp/mips/csb350/ChangeLog Fri Feb 11 06:53:17 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * startup/bspstart.c, timer/timer.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/mips/csb350/startup/bspstart.c:1.12 rtems/c/src/lib/libbsp/mips/csb350/startup/bspstart.c:1.13
--- rtems/c/src/lib/libbsp/mips/csb350/startup/bspstart.c:1.12 Sun Nov 29 09:27:06 2009
+++ rtems/c/src/lib/libbsp/mips/csb350/startup/bspstart.c Fri Feb 11 06:53:17 2011
@@ -34,7 +34,7 @@
mips_set_sr( 0x7f00 ); /* all interrupts unmasked but globally off */
/* depend on the IRC to take care of things */
- asm volatile ("mtc0 %0, $11\n" :: "r" (compare));
+ __asm__ volatile ("mtc0 %0, $11\n" :: "r" (compare));
mips_install_isr_entries();
}
diff -u rtems/c/src/lib/libbsp/mips/csb350/timer/timer.c:1.10 rtems/c/src/lib/libbsp/mips/csb350/timer/timer.c:1.11
--- rtems/c/src/lib/libbsp/mips/csb350/timer/timer.c:1.10 Wed Feb 9 00:41:40 2011
+++ rtems/c/src/lib/libbsp/mips/csb350/timer/timer.c Fri Feb 11 06:53:17 2011
@@ -22,7 +22,7 @@
void benchmark_timer_initialize(void)
{
- asm volatile ("mfc0 %0, $9\n" : "=r" (tstart));
+ __asm__ volatile ("mfc0 %0, $9\n" : "=r" (tstart));
/* tick time in picooseconds */
}
@@ -36,7 +36,7 @@
uint32_t total;
uint32_t cnt;
- asm volatile ("mfc0 %0, $9\n" : "=r" (cnt));
+ __asm__ volatile ("mfc0 %0, $9\n" : "=r" (cnt));
total = cnt - tstart;
total = (total * 1000) / 396; /* convert to nanoseconds */
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* include/tm27.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.129 c/src/lib/libbsp/mips/jmr3904/ChangeLog
M 1.3 c/src/lib/libbsp/mips/jmr3904/include/tm27.h
M 1.154 c/src/lib/libbsp/powerpc/gen5200/ChangeLog
M 1.3 c/src/lib/libbsp/powerpc/gen5200/include/tm27.h
M 1.158 c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
M 1.4 c/src/lib/libbsp/powerpc/motorola_powerpc/include/tm27.h
diff -u rtems/c/src/lib/libbsp/mips/jmr3904/ChangeLog:1.128 rtems/c/src/lib/libbsp/mips/jmr3904/ChangeLog:1.129
--- rtems/c/src/lib/libbsp/mips/jmr3904/ChangeLog:1.128 Wed Feb 9 00:41:40 2011
+++ rtems/c/src/lib/libbsp/mips/jmr3904/ChangeLog Fri Feb 11 06:53:18 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/tm27.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/mips/jmr3904/include/tm27.h:1.2 rtems/c/src/lib/libbsp/mips/jmr3904/include/tm27.h:1.3
--- rtems/c/src/lib/libbsp/mips/jmr3904/include/tm27.h:1.2 Thu Apr 22 23:47:37 2004
+++ rtems/c/src/lib/libbsp/mips/jmr3904/include/tm27.h Fri Feb 11 06:53:18 2011
@@ -26,7 +26,7 @@
(void) set_vector( handler, TX3904_IRQ_SOFTWARE_1, 1 ); \
#define Cause_tm27_intr() \
- asm volatile ( "syscall 0x01" : : );
+ __asm__ volatile ( "syscall 0x01" : : );
#define CLOCK_VECTOR TX3904_IRQ_TMR0
diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.153 rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.154
--- rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog:1.153 Wed Feb 2 08:59:57 2011
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/ChangeLog Fri Feb 11 06:46:30 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/tm27.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/gen5200/include/tm27.h:1.2 rtems/c/src/lib/libbsp/powerpc/gen5200/include/tm27.h:1.3
--- rtems/c/src/lib/libbsp/powerpc/gen5200/include/tm27.h:1.2 Sun Jul 9 05:05:27 2006
+++ rtems/c/src/lib/libbsp/powerpc/gen5200/include/tm27.h Fri Feb 11 06:46:30 2011
@@ -42,22 +42,22 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 8; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
diff -u rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog:1.157 rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog:1.158
--- rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog:1.157 Wed Feb 2 09:00:04 2011
+++ rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog Fri Feb 11 06:50:46 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * include/tm27.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/include/tm27.h:1.3 rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/include/tm27.h:1.4
--- rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/include/tm27.h:1.3 Sat May 22 21:56:41 2004
+++ rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/include/tm27.h Fri Feb 11 06:50:46 2011
@@ -41,22 +41,22 @@
#define Cause_tm27_intr() \
do { \
uint32_t _clicks = 8; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Clear_tm27_intr() \
do { \
uint32_t _clicks = 0xffffffff; \
- asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
+ __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
} while (0)
#define Lower_tm27_intr() \
do { \
uint32_t _msr = 0; \
_ISR_Set_level( 0 ); \
- asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
_msr |= 0x8002; \
- asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
+ __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
} while (0)
#endif
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* shmsupp/lock.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.102 c/src/lib/libbsp/m68k/mvme147s/ChangeLog
M 1.10 c/src/lib/libbsp/m68k/mvme147s/shmsupp/lock.c
M 1.48 c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
M 1.2 c/src/lib/libbsp/nios2/nios2_iss/shmsupp/lock.c
M 1.91 c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
M 1.13 c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c
diff -u rtems/c/src/lib/libbsp/m68k/mvme147s/ChangeLog:1.101 rtems/c/src/lib/libbsp/m68k/mvme147s/ChangeLog:1.102
--- rtems/c/src/lib/libbsp/m68k/mvme147s/ChangeLog:1.101 Wed Feb 2 08:59:16 2011
+++ rtems/c/src/lib/libbsp/m68k/mvme147s/ChangeLog Fri Feb 11 06:37:53 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shmsupp/lock.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/lib/libbsp/m68k/mvme147s/shmsupp/lock.c:1.9 rtems/c/src/lib/libbsp/m68k/mvme147s/shmsupp/lock.c:1.10
--- rtems/c/src/lib/libbsp/m68k/mvme147s/shmsupp/lock.c:1.9 Thu Apr 15 08:26:14 2004
+++ rtems/c/src/lib/libbsp/m68k/mvme147s/shmsupp/lock.c Fri Feb 11 06:37:53 2011
@@ -49,9 +49,9 @@
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 */
}
diff -u rtems/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog:1.47 rtems/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog:1.48
--- rtems/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog:1.47 Wed Feb 9 06:15:05 2011
+++ rtems/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog Fri Feb 11 06:54:47 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shmsupp/lock.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/nios2/nios2_iss/shmsupp/lock.c:1.1 rtems/c/src/lib/libbsp/nios2/nios2_iss/shmsupp/lock.c:1.2
--- rtems/c/src/lib/libbsp/nios2/nios2_iss/shmsupp/lock.c:1.1 Wed Aug 9 15:57:11 2006
+++ rtems/c/src/lib/libbsp/nios2/nios2_iss/shmsupp/lock.c Fri Feb 11 06:54:47 2011
@@ -53,7 +53,7 @@
Shm_isrstat = isr_level;
while ( lock_value ) {
- asm volatile( ""
+ __asm__ volatile( ""
: "=r" (lockptr), "=r" (lock_value)
: "0" (lockptr), "1" (lock_value)
);
diff -u rtems/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog:1.90 rtems/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog:1.91
--- rtems/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog:1.90 Wed Feb 9 06:15:54 2011
+++ rtems/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog Fri Feb 11 06:55:33 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * shmsupp/lock.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-09 Ralf Corsépius <ralf.corsepius at rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
diff -u rtems/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c:1.12 rtems/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c:1.13
--- rtems/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c:1.12 Thu Apr 15 08:26:16 2004
+++ rtems/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c Fri Feb 11 06:55:33 2011
@@ -53,7 +53,7 @@
Shm_isrstat = isr_level;
while ( lock_value ) {
- asm volatile( ""
+ __asm__ volatile( ""
: "=r" (lockptr), "=r" (lock_value)
: "0" (lockptr), "1" (lock_value)
);
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* libchip/network/smc91111config.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.538 c/src/ChangeLog
M 1.6 c/src/libchip/network/smc91111config.h
diff -u rtems/c/src/ChangeLog:1.537 rtems/c/src/ChangeLog:1.538
--- rtems/c/src/ChangeLog:1.537 Wed Feb 2 08:57:38 2011
+++ rtems/c/src/ChangeLog Fri Feb 11 06:57:44 2011
@@ -1,3 +1,8 @@
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * libchip/network/smc91111config.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
2011-02-02 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff -u rtems/c/src/libchip/network/smc91111config.h:1.5 rtems/c/src/libchip/network/smc91111config.h:1.6
--- rtems/c/src/libchip/network/smc91111config.h:1.5 Tue Dec 16 15:58:18 2008
+++ rtems/c/src/libchip/network/smc91111config.h Fri Feb 11 06:57:44 2011
@@ -74,7 +74,7 @@
#define CYG_MACRO_START do {
#define CYG_MACRO_END } while (0)
#define HAL_IO_BARRIER() \
- asm volatile ( "" : : : "memory" )
+ __asm__ volatile ( "" : : : "memory" )
#define HAL_READ_UINT8( _register_, _value_ ) \
CYG_MACRO_START \
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* sh7032/delay/delay.c, sh7032/score/cpu_asm.c,
sh7032/score/ispsh7032.c, sh7045/sci/sci.c,
sh7045/sci/sci_termios.c, sh7045/score/cpu_asm.c,
sh7045/score/ispsh7045.c, sh7750/sci/sh4uart.c,
sh7750/score/cpu_asm.c, sh7750/score/ispsh7750.c,
shgdb/score/cpu_asm.c, shgdb/score/ispshgdb.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.11 c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c
M 1.12 c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c
M 1.14 c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c
M 1.12 c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c
M 1.5 c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c
diff -u rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.10 rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.11
--- rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.10 Fri Feb 11 03:57:25 2011
+++ rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c Fri Feb 11 07:03:48 2011
@@ -81,7 +81,7 @@
* We try to work around this problem by using the macro below.
*/
#define isp( name, number, func)\
-asm (".global _"Str(name)"\n\t" \
+__asm__ (".global _"Str(name)"\n\t" \
"_"Str(name)": \n\t" \
" mov.l r0, at -r15 \n\t" \
" mov.l r1, at -r15 \n\t" \
diff -u rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.11 rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.12
--- rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.11 Fri Feb 11 03:57:25 2011
+++ rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c Fri Feb 11 07:03:48 2011
@@ -107,7 +107,7 @@
* We try to work around this problem by using the macro below.
*/
#define isp( name, number, func)\
-asm (".global _"Str(name)"\n\t"\
+__asm__ (".global _"Str(name)"\n\t"\
"_"Str(name)": \n\t"\
" mov.l r0, at -r15 \n\t"\
" mov.l r1, at -r15 \n\t"\
diff -u rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.13 rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.14
--- rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.13 Fri Feb 11 03:57:25 2011
+++ rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c Fri Feb 11 07:03:48 2011
@@ -866,7 +866,7 @@
" nop\n");
extern void ipl_serial_output(const char *buf, int len);
-asm (
+__asm__ (
" .global _ipl_serial_output\n"
"_ipl_serial_output:\n"
" mov #0,r0\n"
diff -u rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.11 rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.12
--- rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.11 Fri Feb 11 03:57:25 2011
+++ rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c Fri Feb 11 07:03:48 2011
@@ -71,7 +71,7 @@
" or #" __STRINGIFY__(SH7750_TSTR_STR0) ",r1\n" \
" mov.b r1, at r0 \n"
-asm (" .text\n"
+__asm__ (" .text\n"
" .balign 256\n"
" .global __vbr_base\n"
"__vbr_base:\n"
diff -u rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.4 rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.5
--- rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.4 Fri Feb 11 03:57:25 2011
+++ rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c Fri Feb 11 07:03:48 2011
@@ -93,7 +93,7 @@
* We try to work around this problem by using the macro below.
*/
#define isp( name, number, func)\
-asm (".global _"Str(name)"\n\t"\
+__asm__ (".global _"Str(name)"\n\t"\
"_"Str(name)": \n\t"\
" mov.l r0, at -r15 \n\t"\
" mov.l r1, at -r15 \n\t"\
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* mpc55xx/include/mpc55xx.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
M 1.376 c/src/lib/libcpu/powerpc/ChangeLog
M 1.4 c/src/lib/libcpu/powerpc/mpc55xx/include/mpc55xx.h
diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.375 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.376
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.375 Fri Feb 11 03:55:48 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog Fri Feb 11 07:05:24 2011
@@ -1,5 +1,10 @@
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * mpc55xx/include/mpc55xx.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* mpc6xx/altivec/vec_sup.c, mpc6xx/mmu/bat.h:
Fix up comments having been broken in previous commit.
diff -u rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/mpc55xx.h:1.3 rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/mpc55xx.h:1.4
--- rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/mpc55xx.h:1.3 Wed Dec 29 04:45:33 2010
+++ rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/mpc55xx.h Fri Feb 11 07:05:24 2011
@@ -94,7 +94,7 @@
static inline uint32_t mpc55xx_count_leading_zeros( uint32_t value)
{
uint32_t count;
- asm (
+ __asm__ (
"cntlzw %0, %1;"
: "=r" (count)
: "r" (value)
*ralf*:
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* dswifi/common/source/spinlock.h:
Use "__asm__" instead of "__asm" for improved c99-compliance.
M 1.64 c/src/lib/libbsp/arm/nds/ChangeLog
M 1.3 c/src/lib/libbsp/arm/nds/dswifi/common/source/spinlock.h
diff -u rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.63 rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.64
--- rtems/c/src/lib/libbsp/arm/nds/ChangeLog:1.63 Fri Feb 11 05:48:20 2011
+++ rtems/c/src/lib/libbsp/arm/nds/ChangeLog Fri Feb 11 07:07:39 2011
@@ -1,5 +1,10 @@
2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * dswifi/common/source/spinlock.h:
+ Use "__asm__" instead of "__asm" for improved c99-compliance.
+
+2011-02-11 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* console/console.c, dswifi/arm9/source/wifi_arm9.c, tools/bin2s.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
diff -u rtems/c/src/lib/libbsp/arm/nds/dswifi/common/source/spinlock.h:1.2 rtems/c/src/lib/libbsp/arm/nds/dswifi/common/source/spinlock.h:1.3
--- rtems/c/src/lib/libbsp/arm/nds/dswifi/common/source/spinlock.h:1.2 Sun Nov 29 08:53:00 2009
+++ rtems/c/src/lib/libbsp/arm/nds/dswifi/common/source/spinlock.h Fri Feb 11 07:07:39 2011
@@ -28,7 +28,7 @@
/*
-__asm (
+__asm__ (
".GLOBL SLasm_Acquire, SLasm_Release \n"
".ARM \n"
"SLasm_Acquire: \n"
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110211/f8006cad/attachment-0001.html>
More information about the vc
mailing list