<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-02-11)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* avr/power.h: Revert previous patch.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/ChangeLog.diff?r1=text&tr1=1.55&r2=text&tr2=1.56&diff_format=h">M</a></td><td width='1%'>1.56</td><td width='100%'>cpukit/score/cpu/avr/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/avr/power.h.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/score/cpu/avr/avr/power.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/ChangeLog:1.55 rtems/cpukit/score/cpu/avr/ChangeLog:1.56
--- rtems/cpukit/score/cpu/avr/ChangeLog:1.55 Fri Feb 11 03:09:21 2011
+++ rtems/cpukit/score/cpu/avr/ChangeLog Fri Feb 11 03:11:00 2011
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * avr/power.h: Revert previous patch.
+
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * cpu.c, avr/interrupt.h, avr/power.h, rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/avr/power.h:1.4 rtems/cpukit/score/cpu/avr/avr/power.h:1.5
--- rtems/cpukit/score/cpu/avr/avr/power.h:1.4 Fri Feb 11 03:09:21 2011
+++ rtems/cpukit/score/cpu/avr/avr/power.h Fri Feb 11 03:11:00 2011
</font><font color='#997700'>@@ -1377,7 +1377,7 @@
</font> } clock_div_t;
<font color='#880000'>-static inline void clock_prescale_set(clock_div_t) __attribute__((__always_inline__));
</font><font color='#000088'>+static __inline__ void clock_prescale_set(clock_div_t) __attribute__((__always_inline__));
</font>
/** \addtogroup avr_power
\code clock_prescale_set(x) \endcode
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/bfin/ChangeLog.diff?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h">M</a></td><td width='1%'>1.42</td><td width='100%'>cpukit/score/cpu/bfin/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h.diff?r1=text&tr1=1.24&r2=text&tr2=1.25&diff_format=h">M</a></td><td width='1%'>1.25</td><td width='100%'>cpukit/score/cpu/bfin/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/bfin/ChangeLog:1.41 rtems/cpukit/score/cpu/bfin/ChangeLog:1.42
--- rtems/cpukit/score/cpu/bfin/ChangeLog:1.41 Thu Oct 21 17:11:52 2010
+++ rtems/cpukit/score/cpu/bfin/ChangeLog Fri Feb 11 03:11:56 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * rtems/score/cpu.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
<font color='#006600'>diff -u rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.24 rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.25
--- rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.24 Thu Oct 21 17:11:52 2010
+++ rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h Fri Feb 11 03:11:57 2011
</font><font color='#997700'>@@ -710,7 +710,7 @@
</font> */
#define _CPU_ISR_Disable( _level ) \
{ \
<font color='#880000'>- asm volatile ("cli %0; csync \n" : "=d" (_level) ); \
</font><font color='#000088'>+ __asm__ volatile ("cli %0; csync \n" : "=d" (_level) ); \
</font> }
<font color='#997700'>@@ -910,7 +910,7 @@
</font> */
#define _CPU_Fatal_halt( _error ) \
{ \
<font color='#880000'>- asm volatile ( "cli R1; \
</font><font color='#000088'>+ __asm__ volatile ( "cli R1; \
</font> R1 = %0; \
_halt: \
idle; \
<font color='#997700'>@@ -1015,7 +1015,7 @@
</font> #if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE)
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
<font color='#880000'>- asm ("bit(1);"):
</font><font color='#000088'>+ __asm__ ("bit(1);"):
</font> (_output) = 0; /* do something to prevent warnings */ \
}
#endif
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/asm.h, rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/ChangeLog.diff?r1=text&tr1=1.99&r2=text&tr2=1.100&diff_format=h">M</a></td><td width='1%'>1.100</td><td width='100%'>cpukit/score/cpu/h8300/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/cpu.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>cpukit/score/cpu/h8300/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/rtems/asm.h.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>cpukit/score/cpu/h8300/rtems/asm.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h.diff?r1=text&tr1=1.44&r2=text&tr2=1.45&diff_format=h">M</a></td><td width='1%'>1.45</td><td width='100%'>cpukit/score/cpu/h8300/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/ChangeLog:1.99 rtems/cpukit/score/cpu/h8300/ChangeLog:1.100
--- rtems/cpukit/score/cpu/h8300/ChangeLog:1.99 Thu Oct 21 17:12:08 2010
+++ rtems/cpukit/score/cpu/h8300/ChangeLog Fri Feb 11 03:13:08 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cpu.c, rtems/asm.h, rtems/score/cpu.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/cpu.c:1.11 rtems/cpukit/score/cpu/h8300/cpu.c:1.12
--- rtems/cpukit/score/cpu/h8300/cpu.c:1.11 Sat Mar 27 10:01:35 2010
+++ rtems/cpukit/score/cpu/h8300/cpu.c Fri Feb 11 03:13:08 2011
</font><font color='#997700'>@@ -53,7 +53,7 @@
</font> #if defined(__H8300__)
#warning "How do we get ccr on base CPU models"
#else
<font color='#880000'>- asm volatile ( "stc ccr, %0" : "=m" (_ccr) : );
</font><font color='#000088'>+ __asm__ volatile ( "stc ccr, %0" : "=m" (_ccr) : );
</font> #endif
if ( _ccr & 0x80 )
<font color='#997700'>@@ -152,7 +152,7 @@
</font>
for( ; ; )
IDLE_Monitor();
<font color='#880000'>- /*asm(" sleep \n"); */
</font><font color='#000088'>+ /* __asm__ (" sleep \n"); */
</font> /* insert your "halt" instruction here */ ;
}
#endif
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/rtems/asm.h:1.9 rtems/cpukit/score/cpu/h8300/rtems/asm.h:1.10
--- rtems/cpukit/score/cpu/h8300/rtems/asm.h:1.9 Mon Jun 28 19:31:09 2010
+++ rtems/cpukit/score/cpu/h8300/rtems/asm.h Fri Feb 11 03:13:08 2011
</font><font color='#997700'>@@ -98,7 +98,7 @@
</font> #define END_CODE_DCL
#define BEGIN_DATA_DCL .data
#define END_DATA_DCL
<font color='#880000'>-#define BEGIN_CODE asm ( ".text
</font><font color='#000088'>+#define BEGIN_CODE __asm__ ( ".text
</font> #define END_CODE ");
#define BEGIN_DATA
#define END_DATA
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.44 rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.45
--- rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.44 Thu Oct 21 17:12:09 2010
+++ rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h Fri Feb 11 03:13:08 2011
</font><font color='#997700'>@@ -583,7 +583,7 @@
</font>
#define _CPU_ISR_Disable( _isr_cookie ) \
do { \
<font color='#880000'>- asm volatile( "stc.w ccr, @-er7 ;\n orc #0xC0,ccr ;\n mov.w @er7+,%0" : : "r" (_isr_cookie) ); \
</font><font color='#000088'>+ __asm__ volatile( "stc.w ccr, @-er7 ;\n orc #0xC0,ccr ;\n mov.w @er7+,%0" : : "r" (_isr_cookie) ); \
</font> } while (0)
<font color='#997700'>@@ -596,7 +596,7 @@
</font>
#define _CPU_ISR_Enable( _isr_cookie ) \
do { \
<font color='#880000'>- asm volatile( "mov.w %0,@-er7 ;\n ldc.w @er7+, ccr" : : "r" (_isr_cookie) ); \
</font><font color='#000088'>+ __asm__ volatile( "mov.w %0,@-er7 ;\n ldc.w @er7+, ccr" : : "r" (_isr_cookie) ); \
</font> } while (0)
<font color='#997700'>@@ -610,7 +610,7 @@
</font>
#define _CPU_ISR_Flash( _isr_cookie ) \
do { \
<font color='#880000'>- asm volatile( "mov.w %0,@-er7 ;\n ldc.w @er7+, ccr ;\n orc #0xC0,ccr" : : "r" (_isr_cookie) ); \
</font><font color='#000088'>+ __asm__ volatile( "mov.w %0,@-er7 ;\n ldc.w @er7+, ccr ;\n orc #0xC0,ccr" : : "r" (_isr_cookie) ); \
</font> } while (0)
/* end of ISR handler macros */
<font color='#997700'>@@ -630,7 +630,7 @@
</font> #define _CPU_ISR_Disable( _isr_cookie ) \
do { \
unsigned char __ccr; \
<font color='#880000'>- asm volatile( "stc ccr, %0 ; orc #0x80,ccr " \
</font><font color='#000088'>+ __asm__ volatile( "stc ccr, %0 ; orc #0x80,ccr " \
</font> : "=m" (__ccr) /* : "0" (__ccr) */ ); \
(_isr_cookie) = __ccr; \
} while (0)
<font color='#997700'>@@ -653,7 +653,7 @@
</font> #define _CPU_ISR_Enable( _isr_cookie ) \
do { \
unsigned char __ccr = (unsigned char) (_isr_cookie); \
<font color='#880000'>- asm volatile( "ldc %0, ccr" : : "m" (__ccr) ); \
</font><font color='#000088'>+ __asm__ volatile( "ldc %0, ccr" : : "m" (__ccr) ); \
</font> } while (0)
#else
#define _CPU_ISR_Enable( _isr_cookie )
<font color='#997700'>@@ -674,7 +674,7 @@
</font> #define _CPU_ISR_Flash( _isr_cookie ) \
do { \
unsigned char __ccr = (unsigned char) (_isr_cookie); \
<font color='#880000'>- asm volatile( "ldc %0, ccr ; orc #0x80,ccr " : : "m" (__ccr) ); \
</font><font color='#000088'>+ __asm__ volatile( "ldc %0, ccr ; orc #0x80,ccr " : : "m" (__ccr) ); \
</font> } while (0)
#else
#define _CPU_ISR_Flash( _isr_cookie )
<font color='#997700'>@@ -700,8 +700,8 @@
</font>
#define _CPU_ISR_Set_level( _new_level ) \
{ \
<font color='#880000'>- if ( _new_level ) asm volatile ( "orc #0x80,ccr\n" ); \
- else asm volatile ( "andc #0x7f,ccr\n" ); \
</font><font color='#000088'>+ if ( _new_level ) __asm__ volatile ( "orc #0x80,ccr\n" ); \
+ else __asm__ volatile ( "andc #0x7f,ccr\n" ); \
</font> }
#ifndef ASM
</pre>
<p> </p>
<a name='cs4'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, sse_test.c, rtems/score/cpu.h, rtems/score/i386.h,
rtems/score/interrupts.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/ChangeLog.diff?r1=text&tr1=1.102&r2=text&tr2=1.103&diff_format=h">M</a></td><td width='1%'>1.103</td><td width='100%'>cpukit/score/cpu/i386/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/cpu.c.diff?r1=text&tr1=1.46&r2=text&tr2=1.47&diff_format=h">M</a></td><td width='1%'>1.47</td><td width='100%'>cpukit/score/cpu/i386/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/rtems/score/cpu.h.diff?r1=text&tr1=1.36&r2=text&tr2=1.37&diff_format=h">M</a></td><td width='1%'>1.37</td><td width='100%'>cpukit/score/cpu/i386/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/rtems/score/i386.h.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/score/cpu/i386/rtems/score/i386.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/rtems/score/interrupts.h.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/i386/rtems/score/interrupts.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/sse_test.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/i386/sse_test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/ChangeLog:1.102 rtems/cpukit/score/cpu/i386/ChangeLog:1.103
--- rtems/cpukit/score/cpu/i386/ChangeLog:1.102 Thu Jul 29 12:51:38 2010
+++ rtems/cpukit/score/cpu/i386/ChangeLog Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cpu.c, sse_test.c, rtems/score/cpu.h, rtems/score/i386.h,<span style="background-color: #FF0000"> </span>
+ rtems/score/interrupts.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/cpu.c:1.46 rtems/cpukit/score/cpu/i386/cpu.c:1.47
--- rtems/cpukit/score/cpu/i386/cpu.c:1.46 Sat Mar 27 10:01:47 2010
+++ rtems/cpukit/score/cpu/i386/cpu.c Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -35,7 +35,7 @@
</font> void _CPU_Initialize(void)
{
#if CPU_HARDWARE_FP
<font color='#880000'>- register uint16_t fp_status asm ("ax");
</font><font color='#000088'>+ register uint16_t fp_status __asm__ ("ax");
</font> register Context_Control_fp *fp_context;
#endif
<font color='#997700'>@@ -53,8 +53,8 @@
</font>
#if CPU_HARDWARE_FP
fp_status = 0xa5a5;
<font color='#880000'>- asm volatile( "fninit" );
- asm volatile( "fnstsw %0" : "=a" (fp_status) : "0" (fp_status) );
</font><font color='#000088'>+ __asm__ volatile( "fninit" );
+ __asm__ volatile( "fnstsw %0" : "=a" (fp_status) : "0" (fp_status) );
</font>
if ( fp_status == 0 ) {
<font color='#997700'>@@ -63,7 +63,7 @@
</font> #ifdef __SSE__
asm volatile( "fstcw %0":"=m"(fp_context->fpucw) );
#else
<font color='#880000'>- asm volatile( "fsave (%0)" : "=r" (fp_context)
</font><font color='#000088'>+ __asm__ volatile( "fsave (%0)" : "=r" (fp_context)
</font> : "0" (fp_context)
);
#endif
<font color='#997700'>@@ -72,7 +72,7 @@
</font>
#ifdef __SSE__
<font color='#880000'>- asm volatile("stmxcsr %0":"=m"(fp_context->mxcsr));
</font><font color='#000088'>+ __asm__ volatile("stmxcsr %0":"=m"(fp_context->mxcsr));
</font>
/* The BSP must enable the SSE extensions (early).
* If any SSE instruction was already attempted
<font color='#997700'>@@ -111,7 +111,7 @@
</font> void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
while(1){
<font color='#880000'>- asm volatile ("hlt");
</font><font color='#000088'>+ __asm__ volatile ("hlt");
</font> }
return NULL;
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/rtems/score/cpu.h:1.36 rtems/cpukit/score/cpu/i386/rtems/score/cpu.h:1.37
--- rtems/cpukit/score/cpu/i386/rtems/score/cpu.h:1.36 Fri Jul 16 03:38:35 2010
+++ rtems/cpukit/score/cpu/i386/rtems/score/cpu.h Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -354,8 +354,8 @@
</font>
#define _CPU_ISR_Set_level( _new_level ) \
{ \
<font color='#880000'>- if ( _new_level ) asm volatile ( "cli" ); \
- else asm volatile ( "sti" ); \
</font><font color='#000088'>+ if ( _new_level ) __asm__ volatile ( "cli" ); \
+ else __asm__ volatile ( "sti" ); \
</font> }
uint32_t _CPU_ISR_Get_level( void );
<font color='#997700'>@@ -456,7 +456,7 @@
</font>
#define _CPU_Fatal_halt( _error ) \
{ \
<font color='#880000'>- asm volatile ( "cli ; \
</font><font color='#000088'>+ __asm__ volatile ( "cli ; \
</font> movl %0,%%eax ; \
hlt" \
: "=r" ((_error)) : "0" ((_error)) \
<font color='#997700'>@@ -483,7 +483,7 @@
</font> \
_output = 0; \
\
<font color='#880000'>- asm volatile ( "bsfw %0,%1 " \
</font><font color='#000088'>+ __asm__ volatile ( "bsfw %0,%1 " \
</font> : "=r" (__value_in_register), "=r" (_output) \
: "0" (__value_in_register), "1" (_output) \
); \
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/rtems/score/i386.h:1.17 rtems/cpukit/score/cpu/i386/rtems/score/i386.h:1.18
--- rtems/cpukit/score/cpu/i386/rtems/score/i386.h:1.17 Sat Aug 16 00:46:28 2008
+++ rtems/cpukit/score/cpu/i386/rtems/score/i386.h Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -125,7 +125,7 @@
</font> uint32_t lout;
#if (I386_HAS_BSWAP == 0)
<font color='#880000'>- asm volatile( "rorw $8,%%ax;"
</font><font color='#000088'>+ __asm__ volatile( "rorw $8,%%ax;"
</font> "rorl $16,%0;"
"rorw $8,%%ax" : "=a" (lout) : "0" (value) );
#else
<font color='#997700'>@@ -153,21 +153,21 @@
</font> {
register unsigned int segment = 0;
<font color='#880000'>- asm volatile ( "movl %%cr0,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movl %%cr0,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
static inline void i386_set_cr0(unsigned int segment)
{
<font color='#880000'>- asm volatile ( "movl %0,%%cr0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movl %0,%%cr0" : "=r" (segment) : "0" (segment) );
</font> }
static inline unsigned int i386_get_cr2(void)
{
register unsigned int segment = 0;
<font color='#880000'>- asm volatile ( "movl %%cr2,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movl %%cr2,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#997700'>@@ -176,14 +176,14 @@
</font> {
register unsigned int segment = 0;
<font color='#880000'>- asm volatile ( "movl %%cr3,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movl %%cr3,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
static inline void i386_set_cr3(unsigned int segment)
{
<font color='#880000'>- asm volatile ( "movl %0,%%cr3" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movl %0,%%cr3" : "=r" (segment) : "0" (segment) );
</font> }
/* routines */
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/rtems/score/interrupts.h:1.6 rtems/cpukit/score/cpu/i386/rtems/score/interrupts.h:1.7
--- rtems/cpukit/score/cpu/i386/rtems/score/interrupts.h:1.6 Fri Jan 28 09:56:09 2005
+++ rtems/cpukit/score/cpu/i386/rtems/score/interrupts.h Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font>
#define i386_disable_interrupts( _level ) \
{ \
<font color='#880000'>- asm volatile ( "pushf ; \
</font><font color='#000088'>+ __asm__ volatile ( "pushf ; \
</font> cli ; \
pop %0" \
: "=rm" ((_level)) \
<font color='#997700'>@@ -45,7 +45,7 @@
</font>
#define i386_enable_interrupts( _level ) \
{ \
<font color='#880000'>- asm volatile ( "push %0 ; \
</font><font color='#000088'>+ __asm__ volatile ( "push %0 ; \
</font> popf" \
: : "rm" ((_level)) : "cc" \
); \
<font color='#997700'>@@ -53,7 +53,7 @@
</font>
#define i386_flash_interrupts( _level ) \
{ \
<font color='#880000'>- asm volatile ( "push %0 ; \
</font><font color='#000088'>+ __asm__ volatile ( "push %0 ; \
</font> popf ; \
cli" \
: : "rm" ((_level)) : "cc" \
<font color='#997700'>@@ -64,7 +64,7 @@
</font> do { \
register uint32_t _eflags; \
\
<font color='#880000'>- asm volatile ( "pushf ; \
</font><font color='#000088'>+ __asm__ volatile ( "pushf ; \
</font> pop %0" \
: "=rm" ((_eflags)) \
); \
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/sse_test.c:1.3 rtems/cpukit/score/cpu/i386/sse_test.c:1.4
--- rtems/cpukit/score/cpu/i386/sse_test.c:1.3 Sat Mar 27 10:01:47 2010
+++ rtems/cpukit/score/cpu/i386/sse_test.c Fri Feb 11 03:14:20 2011
</font><font color='#997700'>@@ -255,7 +255,7 @@
</font> void
all_clobber(uint32_t v1, uint32_t v2);
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> "all_clobber: \n"
" finit \n"
" movq 0(%esp), %xmm0 \n"
<font color='#997700'>@@ -275,7 +275,7 @@
</font> void
init_ctxt(Context_Control_sse *p_ctxt);
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> "init_ctxt: \n"
" finit \n"
" mov 4(%esp), %eax\n"
<font color='#997700'>@@ -398,7 +398,7 @@
</font> #define __INTRAISE(x) " int $32+"#x" \n"
#define INTRAISE(x) __INTRAISE(x)
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> "do_raise: \n"
" fwait \n"
" test %eax, %eax \n"
<font color='#997700'>@@ -834,7 +834,7 @@
</font>
#define MKCASE(X) case FPE_##X: msg="FPE_"#X; break;
<font color='#880000'>-#define CLRXMM(i) asm volatile("pxor %%xmm"#i", %%xmm"#i:::"xmm"#i)
</font><font color='#000088'>+#define CLRXMM(i) __asm__ volatile("pxor %%xmm"#i", %%xmm"#i:::"xmm"#i)
</font>
static void
fpe_act(int signum, siginfo_t *p_info, void *arg3)
</pre>
<p> </p>
<a name='cs5'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* context_init.c, cpu.c, varvects.h, rtems/score/cpu.h,
rtems/score/m32c.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/ChangeLog.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>cpukit/score/cpu/m32c/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/context_init.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/m32c/context_init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/cpu.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>cpukit/score/cpu/m32c/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>cpukit/score/cpu/m32c/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/rtems/score/m32c.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/score/cpu/m32c/rtems/score/m32c.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/varvects.h.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/m32c/varvects.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/ChangeLog:1.16 rtems/cpukit/score/cpu/m32c/ChangeLog:1.17
--- rtems/cpukit/score/cpu/m32c/ChangeLog:1.16 Thu Oct 21 17:12:51 2010
+++ rtems/cpukit/score/cpu/m32c/ChangeLog Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * context_init.c, cpu.c, varvects.h, rtems/score/cpu.h,
+ rtems/score/m32c.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/context_init.c:1.6 rtems/cpukit/score/cpu/m32c/context_init.c:1.7
--- rtems/cpukit/score/cpu/m32c/context_init.c:1.6 Mon May 10 15:08:50 2010
+++ rtems/cpukit/score/cpu/m32c/context_init.c Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> #define _get_sb( _sb )
#else
#define _get_sb( _sb ) \
<font color='#880000'>- asm volatile( "stc sb, %0" : "=r" (_sb))
</font><font color='#000088'>+ __asm__ volatile( "stc sb, %0" : "=r" (_sb))
</font> #endif
void _CPU_Context_Initialize(
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/cpu.c:1.8 rtems/cpukit/score/cpu/m32c/cpu.c:1.9
--- rtems/cpukit/score/cpu/m32c/cpu.c:1.8 Mon May 10 15:08:50 2010
+++ rtems/cpukit/score/cpu/m32c/cpu.c Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -33,7 +33,7 @@
</font> void _CPU_Initialize(void)
{
#if !defined(__r8c_cpu__)
<font color='#880000'>- asm volatile( "ldc #__var_vects,intb" );
</font><font color='#000088'>+ __asm__ volatile( "ldc #__var_vects,intb" );
</font> #endif
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.11 rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.12
--- rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.11 Thu Oct 21 17:12:51 2010
+++ rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -674,7 +674,7 @@
</font> int _flg; \
m32c_get_flg( _flg ); \
_isr_cookie = _flg; \
<font color='#880000'>- asm volatile( "fclr I" ); \
</font><font color='#000088'>+ __asm__ volatile( "fclr I" ); \
</font> } while(0)
/**
<font color='#997700'>@@ -712,7 +712,7 @@
</font> do { \
int _flg = (int) (_isr_cookie); \
m32c_set_flg( _flg ); \
<font color='#880000'>- asm volatile( "fclr I" ); \
</font><font color='#000088'>+ __asm__ volatile( "fclr I" ); \
</font> } while(0)
/**
<font color='#997700'>@@ -734,8 +734,8 @@
</font> */
#define _CPU_ISR_Set_level( _new_level ) \
do { \
<font color='#880000'>- if (_new_level) asm volatile( "fclr I" ); \
- else asm volatile( "fset I" ); \
</font><font color='#000088'>+ if (_new_level) __asm__ volatile( "fclr I" ); \
+ else __asm__ volatile( "fset I" ); \
</font> } while(0)
/**
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/rtems/score/m32c.h:1.2 rtems/cpukit/score/cpu/m32c/rtems/score/m32c.h:1.3
--- rtems/cpukit/score/cpu/m32c/rtems/score/m32c.h:1.2 Sun Nov 29 07:51:53 2009
+++ rtems/cpukit/score/cpu/m32c/rtems/score/m32c.h Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -60,10 +60,10 @@
</font> #define CPU_NAME "m32c"
#define m32c_get_flg( _flg ) \
<font color='#880000'>- asm volatile( "stc flg, %0" : "=r" (_flg))
</font><font color='#000088'>+ __asm__ volatile( "stc flg, %0" : "=r" (_flg))
</font>
#define m32c_set_flg( _flg ) \
<font color='#880000'>- asm volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) )
</font><font color='#000088'>+ __asm__ volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) )
</font>
#ifdef __cplusplus
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/varvects.h:1.3 rtems/cpukit/score/cpu/m32c/varvects.h:1.4
--- rtems/cpukit/score/cpu/m32c/varvects.h:1.3 Sun Nov 29 07:51:53 2009
+++ rtems/cpukit/score/cpu/m32c/varvects.h Fri Feb 11 03:20:50 2011
</font><font color='#997700'>@@ -42,8 +42,8 @@
</font> #if defined(__r8c_cpu__) || defined (__m16c_cpu__)
#define _set_var_vect(f,n) \
<font color='#880000'>- { asm ("mov.w #%%lo16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4)); \
- asm ("mov.w #%%hi16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4+2)); }
</font><font color='#000088'>+ { __asm__ ("mov.w #%%lo16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4)); \
+ __asm__ ("mov.w #%%hi16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4+2)); }
</font>
#else
</pre>
<p> </p>
<a name='cs6'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* context_init.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32r/ChangeLog.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/score/cpu/m32r/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32r/context_init.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/score/cpu/m32r/context_init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32r/ChangeLog:1.10 rtems/cpukit/score/cpu/m32r/ChangeLog:1.11
--- rtems/cpukit/score/cpu/m32r/ChangeLog:1.10 Mon Jan 31 19:14:54 2011
+++ rtems/cpukit/score/cpu/m32r/ChangeLog Fri Feb 11 03:21:33 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * context_init.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-01-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* context_switch.S: Reverse registers.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32r/context_init.c:1.2 rtems/cpukit/score/cpu/m32r/context_init.c:1.3
--- rtems/cpukit/score/cpu/m32r/context_init.c:1.2 Sat Mar 27 10:02:02 2010
+++ rtems/cpukit/score/cpu/m32r/context_init.c Fri Feb 11 03:21:33 2011
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> } Starting_Frame;
#define _get_r12( _r12 ) \
<font color='#880000'>- asm volatile( "mv r12, %0" : "=r" (_r12))
</font><font color='#000088'>+ __asm__ volatile( "mv r12, %0" : "=r" (_r12))
</font>
void _CPU_Context_Initialize(
Context_Control *the_context,
</pre>
<p> </p>
<a name='cs7'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h, rtems/score/m68k.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/ChangeLog.diff?r1=text&tr1=1.125&r2=text&tr2=1.126&diff_format=h">M</a></td><td width='1%'>1.126</td><td width='100%'>cpukit/score/cpu/m68k/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/cpu.c.diff?r1=text&tr1=1.35&r2=text&tr2=1.36&diff_format=h">M</a></td><td width='1%'>1.36</td><td width='100%'>cpukit/score/cpu/m68k/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/rtems/score/cpu.h.diff?r1=text&tr1=1.44&r2=text&tr2=1.45&diff_format=h">M</a></td><td width='1%'>1.45</td><td width='100%'>cpukit/score/cpu/m68k/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/rtems/score/m68k.h.diff?r1=text&tr1=1.35&r2=text&tr2=1.36&diff_format=h">M</a></td><td width='1%'>1.36</td><td width='100%'>cpukit/score/cpu/m68k/rtems/score/m68k.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/ChangeLog:1.125 rtems/cpukit/score/cpu/m68k/ChangeLog:1.126
--- rtems/cpukit/score/cpu/m68k/ChangeLog:1.125 Thu Jul 29 12:51:46 2010
+++ rtems/cpukit/score/cpu/m68k/ChangeLog Fri Feb 11 03:22:30 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cpu.c, rtems/score/cpu.h, rtems/score/m68k.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/cpu.c:1.35 rtems/cpukit/score/cpu/m68k/cpu.c:1.36
--- rtems/cpukit/score/cpu/m68k/cpu.c:1.35 Sat Mar 27 10:02:07 2010
+++ rtems/cpukit/score/cpu/m68k/cpu.c Fri Feb 11 03:22:30 2011
</font><font color='#997700'>@@ -156,7 +156,7 @@
</font> #if ( M68K_HAS_SEPARATE_STACKS == 1 )
void *isp = _CPU_Interrupt_stack_high;
<font color='#880000'>- asm volatile ( "movec %0,%%isp" : "=r" (isp) : "0" (isp) );
</font><font color='#000088'>+ __asm__ volatile ( "movec %0,%%isp" : "=r" (isp) : "0" (isp) );
</font> #endif
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/rtems/score/cpu.h:1.44 rtems/cpukit/score/cpu/m68k/rtems/score/cpu.h:1.45
--- rtems/cpukit/score/cpu/m68k/rtems/score/cpu.h:1.44 Fri Jul 16 03:40:58 2010
+++ rtems/cpukit/score/cpu/m68k/rtems/score/cpu.h Fri Feb 11 03:22:30 2011
</font><font color='#997700'>@@ -485,7 +485,7 @@
</font>
#if ( defined(__mcoldfire__) )
#define _CPU_Fatal_halt( _error ) \
<font color='#880000'>- { asm volatile( "move.w %%sr,%%d0\n\t" \
</font><font color='#000088'>+ { __asm__ volatile( "move.w %%sr,%%d0\n\t" \
</font> "or.l %2,%%d0\n\t" \
"move.w %%d0,%%sr\n\t" \
"move.l %1,%%d0\n\t" \
<font color='#997700'>@@ -497,7 +497,7 @@
</font> }
#else
#define _CPU_Fatal_halt( _error ) \
<font color='#880000'>- { asm volatile( "movl %0,%%d0; " \
</font><font color='#000088'>+ { __asm__ volatile( "movl %0,%%d0; " \
</font> "orw #0x0700,%%sr; " \
"stop #0x2700" : "=d" ((_error)) : "0" ((_error)) ); \
}
<font color='#997700'>@@ -532,12 +532,12 @@
</font> #if ( M68K_HAS_BFFFO == 1 )
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
<font color='#880000'>- asm volatile( "bfffo (%1),#0,#16,%0" : "=d" (_output) : "a" (&_value));
</font><font color='#000088'>+ __asm__ volatile( "bfffo (%1),#0,#16,%0" : "=d" (_output) : "a" (&_value));
</font>
#elif ( __mcfisaaplus__ )
/* This is simplified by the fact that RTEMS never calls it with _value=0 */
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
<font color='#880000'>- asm volatile ( \
</font><font color='#000088'>+ __asm__ volatile ( \
</font> " swap %0\n" \
" ff1.l %0\n" \
: "=d" ((_output)) \
<font color='#997700'>@@ -554,7 +554,7 @@
</font> { \
register int dumby; \
\
<font color='#880000'>- asm volatile ( \
</font><font color='#000088'>+ __asm__ volatile ( \
</font> " clr.l %1\n" \
" move.w %2,%1\n" \
" lsr.l #8,%1\n" \
<font color='#997700'>@@ -574,7 +574,7 @@
</font> { \
register int dumby; \
\
<font color='#880000'>- asm volatile ( " move.w %2,%1\n" \
</font><font color='#000088'>+ __asm__ volatile ( " move.w %2,%1\n" \
</font> " lsr.w #8,%1\n" \
" beq.s 1f\n" \
" move.b (%3,%1.w),%0\n" \
<font color='#997700'>@@ -592,7 +592,7 @@
</font> { \
register int dumby; \
\
<font color='#880000'>- asm volatile ( " move.w %2,%1\n" \
</font><font color='#000088'>+ __asm__ volatile ( " move.w %2,%1\n" \
</font> " lsr.w #8,%1\n" \
" beq.s 1f\n" \
" move.b (%3,%1.w),%0\n" \
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/rtems/score/m68k.h:1.35 rtems/cpukit/score/cpu/m68k/rtems/score/m68k.h:1.36
--- rtems/cpukit/score/cpu/m68k/rtems/score/m68k.h:1.35 Thu Dec 3 23:25:26 2009
+++ rtems/cpukit/score/cpu/m68k/rtems/score/m68k.h Fri Feb 11 03:22:30 2011
</font><font color='#997700'>@@ -335,7 +335,7 @@
</font> #if ( defined(__mcoldfire__) )
#define m68k_disable_interrupts( _level ) \
do { register uint32_t _tmpsr = 0x0700; \
<font color='#880000'>- asm volatile ( "move.w %%sr,%0\n\t" \
</font><font color='#000088'>+ __asm__ volatile ( "move.w %%sr,%0\n\t" \
</font> "or.l %0,%1\n\t" \
"move.w %1,%%sr" \
: "=d" (_level), "=d"(_tmpsr) : "1"(_tmpsr) \
<font color='#997700'>@@ -343,14 +343,14 @@
</font> } while( 0 )
#else
#define m68k_disable_interrupts( _level ) \
<font color='#880000'>- asm volatile ( "move.w %%sr,%0\n\t" \
</font><font color='#000088'>+ __asm__ volatile ( "move.w %%sr,%0\n\t" \
</font> "or.w #0x0700,%%sr" \
: "=d" (_level) \
: : "cc" )
#endif
#define m68k_enable_interrupts( _level ) \
<font color='#880000'>- asm volatile ( "move.w %0,%%sr " : : "d" (_level) : "cc");
</font><font color='#000088'>+ __asm__ volatile ( "move.w %0,%%sr " : : "d" (_level) : "cc");
</font>
#if ( defined(__mcoldfire__) )
#define m68k_flash_interrupts( _level ) \
<font color='#997700'>@@ -363,7 +363,7 @@
</font> } while( 0 )
#else
#define m68k_flash_interrupts( _level ) \
<font color='#880000'>- asm volatile ( "move.w %0,%%sr\n\t" \
</font><font color='#000088'>+ __asm__ volatile ( "move.w %0,%%sr\n\t" \
</font> "or.w #0x0700,%%sr" \
: : "d" (_level) \
: "cc" )
<font color='#997700'>@@ -373,7 +373,7 @@
</font> do { \
register uint32_t _tmpsr; \
\
<font color='#880000'>- asm volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \
</font><font color='#000088'>+ __asm__ volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \
</font> _level = (_tmpsr & 0x0700) >> 8; \
} while (0)
<font color='#997700'>@@ -381,17 +381,17 @@
</font> do { \
register uint32_t _tmpsr; \
\
<font color='#880000'>- asm volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \
</font><font color='#000088'>+ __asm__ volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \
</font> _tmpsr = (_tmpsr & 0xf8ff) | ((_newlevel) << 8); \
<font color='#880000'>- asm volatile( "move.w %0,%%sr" : : "d" (_tmpsr)); \
</font><font color='#000088'>+ __asm__ volatile( "move.w %0,%%sr" : : "d" (_tmpsr)); \
</font> } while (0)
#if ( M68K_HAS_VBR == 1 && !defined(__mcoldfire__) )
#define m68k_get_vbr( vbr ) \
<font color='#880000'>- asm volatile ( "movec %%vbr,%0 " : "=r" (vbr))
</font><font color='#000088'>+ __asm__ volatile ( "movec %%vbr,%0 " : "=r" (vbr))
</font>
#define m68k_set_vbr( vbr ) \
<font color='#880000'>- asm volatile ( "movec %0,%%vbr " : : "r" (vbr))
</font><font color='#000088'>+ __asm__ volatile ( "movec %0,%%vbr " : : "r" (vbr))
</font>
#elif ( defined(__mcoldfire__) )
extern void* _VBR;
<font color='#997700'>@@ -399,7 +399,7 @@
</font>
#define m68k_set_vbr( _vbr ) \
do { \
<font color='#880000'>- asm volatile ( "movec %0,%%vbr " : : "r" (_vbr)); \
</font><font color='#000088'>+ __asm__ volatile ( "movec %0,%%vbr " : : "r" (_vbr)); \
</font> _VBR = (void *)_vbr; \
} while(0)
<font color='#997700'>@@ -411,9 +411,9 @@
</font> /*
* Access Control Registers
*/
<font color='#880000'>-#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))
</font><font color='#000088'>+#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))
</font>
/*
* The following routine swaps the endian format of an unsigned int.
<font color='#997700'>@@ -454,9 +454,9 @@
</font> {
uint32_t swapped = value;
<font color='#880000'>- asm volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
- asm volatile( "swap %0" : "=d" (swapped) : "0" (swapped) );
- asm volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
</font><font color='#000088'>+ __asm__ volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
+ __asm__ volatile( "swap %0" : "=d" (swapped) : "0" (swapped) );
+ __asm__ volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
</font>
return( swapped );
}
<font color='#997700'>@@ -467,7 +467,7 @@
</font> {
uint16_t swapped = value;
<font color='#880000'>- asm volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
</font><font color='#000088'>+ __asm__ volatile( "rorw #8,%0" : "=d" (swapped) : "0" (swapped) );
</font>
return( swapped );
}
</pre>
<p> </p>
<a name='cs8'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* irq.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/nios2/ChangeLog.diff?r1=text&tr1=1.26&r2=text&tr2=1.27&diff_format=h">M</a></td><td width='1%'>1.27</td><td width='100%'>cpukit/score/cpu/nios2/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/nios2/irq.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/score/cpu/nios2/irq.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/nios2/ChangeLog:1.26 rtems/cpukit/score/cpu/nios2/ChangeLog:1.27
--- rtems/cpukit/score/cpu/nios2/ChangeLog:1.26 Thu Oct 21 17:14:01 2010
+++ rtems/cpukit/score/cpu/nios2/ChangeLog Fri Feb 11 03:23:20 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * irq.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
<font color='#006600'>diff -u rtems/cpukit/score/cpu/nios2/irq.c:1.7 rtems/cpukit/score/cpu/nios2/irq.c:1.8
--- rtems/cpukit/score/cpu/nios2/irq.c:1.7 Fri Jul 30 13:52:14 2010
+++ rtems/cpukit/score/cpu/nios2/irq.c Fri Feb 11 03:23:20 2011
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> unsigned long *_old_stack_ptr;
#endif
<font color='#880000'>-register unsigned long *stack_ptr asm("sp");
</font><font color='#000088'>+register unsigned long *stack_ptr __asm__ ("sp");
</font>
void __ISR_Handler(uint32_t vector, CPU_Interrupt_frame *ifr)
{
</pre>
<p> </p>
<a name='cs9'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/powerpc/registers.h, rtems/score/cpu.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/ChangeLog.diff?r1=text&tr1=1.160&r2=text&tr2=1.161&diff_format=h">M</a></td><td width='1%'>1.161</td><td width='100%'>cpukit/score/cpu/powerpc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h.diff?r1=text&tr1=1.34&r2=text&tr2=1.35&diff_format=h">M</a></td><td width='1%'>1.35</td><td width='100%'>cpukit/score/cpu/powerpc/rtems/powerpc/registers.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h.diff?r1=text&tr1=1.44&r2=text&tr2=1.45&diff_format=h">M</a></td><td width='1%'>1.45</td><td width='100%'>cpukit/score/cpu/powerpc/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/ChangeLog:1.160 rtems/cpukit/score/cpu/powerpc/ChangeLog:1.161
--- rtems/cpukit/score/cpu/powerpc/ChangeLog:1.160 Mon Jan 31 09:46:13 2011
+++ rtems/cpukit/score/cpu/powerpc/ChangeLog Fri Feb 11 03:24:09 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * rtems/powerpc/registers.h, rtems/score/cpu.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-01-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Changed Freescale EIS prefix. More
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h:1.34 rtems/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h:1.35
--- rtems/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h:1.34 Mon Jan 31 09:46:13 2011
+++ rtems/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h Fri Feb 11 03:24:09 2011
</font><font color='#997700'>@@ -424,15 +424,15 @@
</font> #define _CPU_MSR_GET( _msr_value ) \
do { \
_msr_value = 0; \
<font color='#880000'>- asm volatile ("mfmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); \
</font><font color='#000088'>+ __asm__ volatile ("mfmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); \
</font> } while (0)
#define _CPU_MSR_SET( _msr_value ) \
<font color='#880000'>-{ asm volatile ("mtmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); }
</font><font color='#000088'>+{ __asm__ volatile ("mtmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); }
</font>
static inline void ppc_interrupt_set_disable_mask( uint32_t mask )
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mtspr 272, %0"
:
: "r" (mask)
<font color='#997700'>@@ -443,7 +443,7 @@
</font> {
uint32_t mask;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfspr %0, 272"
: "=r" (mask)
);
<font color='#997700'>@@ -456,7 +456,7 @@
</font> uint32_t level;
uint32_t mask;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfmsr %0;"
"mfspr %1, 272;"
"andc %1, %0, %1;"
<font color='#997700'>@@ -469,7 +469,7 @@
</font>
static inline void ppc_interrupt_enable( uint32_t level )
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mtmsr %0"
:
: "r" (level)
<font color='#997700'>@@ -480,7 +480,7 @@
</font> {
uint32_t current_level;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfmsr %0;"
"mtmsr %1;"
"mtmsr %0"
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.44 rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.45
--- rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.44 Thu Oct 21 17:14:44 2010
+++ rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h Fri Feb 11 03:24:09 2011
</font><font color='#997700'>@@ -666,7 +666,7 @@
</font> {
uint32_t swapped;
<font color='#880000'>- asm volatile("rlwimi %0,%1,8,24,31;"
</font><font color='#000088'>+ __asm__ volatile("rlwimi %0,%1,8,24,31;"
</font> "rlwimi %0,%1,24,16,23;"
"rlwimi %0,%1,8,8,15;"
"rlwimi %0,%1,24,0,7;" :
<font color='#997700'>@@ -817,7 +817,7 @@
</font>
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
<font color='#880000'>- asm volatile ("cntlzw %0, %1" : "=r" ((_output)), "=r" ((_value)) : \
</font><font color='#000088'>+ __asm__ volatile ("cntlzw %0, %1" : "=r" ((_output)), "=r" ((_value)) : \
</font> "1" ((_value))); \
}
</pre>
<p> </p>
<a name='cs10'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h, rtems/score/sparc64.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc64/ChangeLog.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/sparc64/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc64/rtems/score/cpu.h.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/score/cpu/sparc64/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc64/rtems/score/sparc64.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/score/cpu/sparc64/rtems/score/sparc64.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc64/ChangeLog:1.6 rtems/cpukit/score/cpu/sparc64/ChangeLog:1.7
--- rtems/cpukit/score/cpu/sparc64/ChangeLog:1.6 Tue Nov 16 17:22:47 2010
+++ rtems/cpukit/score/cpu/sparc64/ChangeLog Fri Feb 11 03:25:21 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * rtems/score/cpu.h, rtems/score/sparc64.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-11-16 Gedare Bloom <giddyup44@yahoo.com>
* rtems/score/sparc64.h: Fix typo.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc64/rtems/score/cpu.h:1.4 rtems/cpukit/score/cpu/sparc64/rtems/score/cpu.h:1.5
--- rtems/cpukit/score/cpu/sparc64/rtems/score/cpu.h:1.4 Thu Oct 21 17:18:05 2010
+++ rtems/cpukit/score/cpu/sparc64/rtems/score/cpu.h Fri Feb 11 03:25:21 2011
</font><font color='#997700'>@@ -844,7 +844,7 @@
</font>
#define _CPU_Context_Initialization_at_thread_begin() \
do { \
<font color='#880000'>- asm volatile ("set _Thread_Handler,%%i7\n"::); \
</font><font color='#000088'>+ __asm__ volatile ("set _Thread_Handler,%%i7\n"::); \
</font> } while (0)
/*
<font color='#997700'>@@ -896,7 +896,7 @@
</font> uint32_t level; \
\
level = sparc_disable_interrupts(); \
<font color='#880000'>- asm volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) ); \
</font><font color='#000088'>+ __asm__ volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) ); \
</font> while (1); /* loop forever */ \
} while (0)
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc64/rtems/score/sparc64.h:1.2 rtems/cpukit/score/cpu/sparc64/rtems/score/sparc64.h:1.3
--- rtems/cpukit/score/cpu/sparc64/rtems/score/sparc64.h:1.2 Tue Nov 16 17:22:47 2010
+++ rtems/cpukit/score/cpu/sparc64/rtems/score/sparc64.h Fri Feb 11 03:25:21 2011
</font><font color='#997700'>@@ -170,7 +170,7 @@
</font>
#define nop() \
do { \
<font color='#880000'>- asm volatile ( "nop" ); \
</font><font color='#000088'>+ __asm__ volatile ( "nop" ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -180,12 +180,12 @@
</font> #define sparc64_get_pstate( _pstate ) \
do { \
(_pstate) = 0; \
<font color='#880000'>- asm volatile( "rdpr %%pstate, %0" : "=r" (_pstate) : "0" (_pstate) ); \
</font><font color='#000088'>+ __asm__ volatile( "rdpr %%pstate, %0" : "=r" (_pstate) : "0" (_pstate) ); \
</font> } while ( 0 )
#define sparc64_set_pstate( _pstate ) \
do { \
<font color='#880000'>- asm volatile ( \
</font><font color='#000088'>+ __asm__ volatile ( \
</font> "wrpr %%g0, %0, %%pstate " : "=r" ((_pstate)) : "0" ((_pstate)) ); \
} while ( 0 )
<font color='#997700'>@@ -196,12 +196,12 @@
</font> #define sparc64_get_pil( _pil ) \
do { \
(_pil) = 0; \
<font color='#880000'>- asm volatile( "rdpr %%pil, %0" : "=r" (_pil) : "0" (_pil) ); \
</font><font color='#000088'>+ __asm__ volatile( "rdpr %%pil, %0" : "=r" (_pil) : "0" (_pil) ); \
</font> } while ( 0 )
#define sparc64_set_pil( _pil ) \
do { \
<font color='#880000'>- asm volatile ( "wrpr %%g0, %0, %%pil " : "=r" ((_pil)) : "0" ((_pil)) ); \
</font><font color='#000088'>+ __asm__ volatile ( "wrpr %%g0, %0, %%pil " : "=r" ((_pil)) : "0" ((_pil)) ); \
</font> } while ( 0 )
<font color='#997700'>@@ -212,12 +212,12 @@
</font> #define sparc64_get_tba( _tba ) \
do { \
(_tba) = 0; /* to avoid unitialized warnings */ \
<font color='#880000'>- asm volatile( "rdpr %%tba, %0" : "=r" (_tba) : "0" (_tba) ); \
</font><font color='#000088'>+ __asm__ volatile( "rdpr %%tba, %0" : "=r" (_tba) : "0" (_tba) ); \
</font> } while ( 0 )
#define sparc64_set_tba( _tba ) \
do { \
<font color='#880000'>- asm volatile( "wrpr %%g0, %0, %%tba" : "=r" (_tba) : "0" (_tba) ); \
</font><font color='#000088'>+ __asm__ volatile( "wrpr %%g0, %0, %%tba" : "=r" (_tba) : "0" (_tba) ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -227,12 +227,12 @@
</font> #define sparc64_get_tl( _tl ) \
do { \
(_tl) = 0; /* to avoid unitialized warnings */ \
<font color='#880000'>- asm volatile( "rdpr %%tl, %0" : "=r" (_tl) : "0" (_tl) ); \
</font><font color='#000088'>+ __asm__ volatile( "rdpr %%tl, %0" : "=r" (_tl) : "0" (_tl) ); \
</font> } while ( 0 )
#define sparc64_set_tl( _tl ) \
do { \
<font color='#880000'>- asm volatile( "wrpr %%g0, %0, %%tl" : "=r" (_tl) : "0" (_tl) ); \
</font><font color='#000088'>+ __asm__ volatile( "wrpr %%g0, %0, %%tl" : "=r" (_tl) : "0" (_tl) ); \
</font> } while ( 0 )
<font color='#997700'>@@ -247,7 +247,7 @@
</font> #define sparc64_read_stick( _stick ) \
do { \
(_stick) = 0; \
<font color='#880000'>- asm volatile( "rd %%stick, %0" : "=r" (_stick) : "0" (_stick) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%stick, %0" : "=r" (_stick) : "0" (_stick) ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -260,7 +260,7 @@
</font> */
#define sparc64_write_stick_cmpr( _stick_cmpr ) \
do { \
<font color='#880000'>- asm volatile( "wr %%g0, %0, %%stick_cmpr" : "=r" (_stick_cmpr) \
</font><font color='#000088'>+ __asm__ volatile( "wr %%g0, %0, %%stick_cmpr" : "=r" (_stick_cmpr) \
</font> : "0" (_stick_cmpr) ); \
} while ( 0 )
<font color='#997700'>@@ -270,7 +270,7 @@
</font> #define sparc64_read_tick( _tick ) \
do { \
(_tick) = 0; \
<font color='#880000'>- asm volatile( "rd %%tick, %0" : "=r" (_tick) : "0" (_tick) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%tick, %0" : "=r" (_tick) : "0" (_tick) ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -278,7 +278,7 @@
</font> */
#define sparc64_write_tick_cmpr( _tick_cmpr ) \
do { \
<font color='#880000'>- asm volatile( "wr %%g0, %0, %%tick_cmpr" : "=r" (_tick_cmpr) \
</font><font color='#000088'>+ __asm__ volatile( "wr %%g0, %0, %%tick_cmpr" : "=r" (_tick_cmpr) \
</font> : "0" (_tick_cmpr) ); \
} while ( 0 )
<font color='#997700'>@@ -289,7 +289,7 @@
</font> */
#define sparc64_clear_interrupt_bits( _bit_mask ) \
do { \
<font color='#880000'>- asm volatile( "wr %%g0, %0, %%clear_softint" : "=r" (_bit_mask) \
</font><font color='#000088'>+ __asm__ volatile( "wr %%g0, %0, %%clear_softint" : "=r" (_bit_mask) \
</font> : "0" (_bit_mask)); \
} while ( 0 )
<font color='#997700'>@@ -301,12 +301,12 @@
</font>
#define sparc_get_y( _y ) \
do { \
<font color='#880000'>- asm volatile( "rd %%y, %0" : "=r" (_y) : "0" (_y) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%y, %0" : "=r" (_y) : "0" (_y) ); \
</font> } while ( 0 )
#define sparc_set_y( _y ) \
do { \
<font color='#880000'>- asm volatile( "wr %0, %%y" : "=r" (_y) : "0" (_y) ); \
</font><font color='#000088'>+ __asm__ volatile( "wr %0, %%y" : "=r" (_y) : "0" (_y) ); \
</font> } while ( 0 )
/************* /DEPRECATED ****************/
</pre>
<p> </p>
<a name='cs11'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/basedefs.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2706&r2=text&tr2=1.2707&diff_format=h">M</a></td><td width='1%'>1.2707</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/basedefs.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/include/rtems/score/basedefs.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2706 rtems/cpukit/ChangeLog:1.2707
--- rtems/cpukit/ChangeLog:1.2706 Thu Feb 10 18:05:29 2011
+++ rtems/cpukit/ChangeLog Fri Feb 11 03:27:03 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * score/include/rtems/score/basedefs.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/include/rtems/bdpart.h (rtems_bdpart_format):
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/basedefs.h:1.1 rtems/cpukit/score/include/rtems/score/basedefs.h:1.2
--- rtems/cpukit/score/include/rtems/score/basedefs.h:1.1 Fri Jul 16 03:31:33 2010
+++ rtems/cpukit/score/include/rtems/score/basedefs.h Fri Feb 11 03:27:03 2011
</font><font color='#997700'>@@ -116,7 +116,7 @@
</font> * impact interrupt disable and thread dispatching critical sections.
*/
#ifdef __GNUC__
<font color='#880000'>- #define RTEMS_COMPILER_MEMORY_BARRIER() asm volatile("" ::: "memory")
</font><font color='#000088'>+ #define RTEMS_COMPILER_MEMORY_BARRIER() __asm__ volatile("" ::: "memory")
</font> #else
#define RTEMS_COMPILER_MEMORY_BARRIER()
#endif
</pre>
<p> </p>
<a name='cs12'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* pxa255/pmc/pmc.c, shared/include/arm-cp15.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/ChangeLog.diff?r1=text&tr1=1.77&r2=text&tr2=1.78&diff_format=h">M</a></td><td width='1%'>1.78</td><td width='100%'>c/src/lib/libcpu/arm/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/pxa255/pmc/pmc.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/arm/pxa255/pmc/pmc.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/arm/shared/include/arm-cp15.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/arm/shared/include/arm-cp15.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/arm/ChangeLog:1.77 rtems/c/src/lib/libcpu/arm/ChangeLog:1.78
--- rtems/c/src/lib/libcpu/arm/ChangeLog:1.77 Wed Feb 2 09:00:49 2011
+++ rtems/c/src/lib/libcpu/arm/ChangeLog Fri Feb 11 03:32:25 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * pxa255/pmc/pmc.c, shared/include/arm-cp15.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/arm/pxa255/pmc/pmc.c:1.2 rtems/c/src/lib/libcpu/arm/pxa255/pmc/pmc.c:1.3
--- rtems/c/src/lib/libcpu/arm/pxa255/pmc/pmc.c:1.2 Fri Jul 10 10:34:12 2009
+++ rtems/c/src/lib/libcpu/arm/pxa255/pmc/pmc.c Fri Feb 11 03:32:25 2011
</font><font color='#997700'>@@ -17,31 +17,31 @@
</font> unsigned int val = 0;
switch(reg){
case PMC_PMNC:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c0,c1,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c0,c1,0\n":"=r"(val):);
</font> break;
case PMC_CCNT:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c1,c1,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c1,c1,0\n":"=r"(val):);
</font> break;
case PMC_INTEN:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c4,c1,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c4,c1,0\n":"=r"(val):);
</font> break;
case PMC_FLAG:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c5,c1,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c5,c1,0\n":"=r"(val):);
</font> break;
case PMC_EVTSEL:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c8,c1,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c8,c1,0\n":"=r"(val):);
</font> break;
case PMC_PMN0:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c0,c2,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c0,c2,0\n":"=r"(val):);
</font> break;
case PMC_PMN1:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c1,c2,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c1,c2,0\n":"=r"(val):);
</font> break;
case PMC_PMN2:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c2,c2,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c2,c2,0\n":"=r"(val):);
</font> break;
case PMC_PMN3:
<font color='#880000'>- asm volatile("mrc p14,0,%0,c3,c2,0\n":"=r"(val):);
</font><font color='#000088'>+ __asm__ volatile("mrc p14,0,%0,c3,c2,0\n":"=r"(val):);
</font> break;
default:
val = 0;
<font color='#997700'>@@ -54,31 +54,31 @@
</font> {
switch(reg){
case PMC_PMNC:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c0,c1,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c0,c1,0\n"::"r"(val));
</font> break;
case PMC_CCNT:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c1,c1,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c1,c1,0\n"::"r"(val));
</font> break;
case PMC_INTEN:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c4,c1,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c4,c1,0\n"::"r"(val));
</font> break;
case PMC_FLAG:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c5,c1,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c5,c1,0\n"::"r"(val));
</font> break;
case PMC_EVTSEL:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c8,c1,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c8,c1,0\n"::"r"(val));
</font> break;
case PMC_PMN0:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c0,c2,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c0,c2,0\n"::"r"(val));
</font> break;
case PMC_PMN1:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c1,c2,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c1,c2,0\n"::"r"(val));
</font> break;
case PMC_PMN2:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c2,c2,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c2,c2,0\n"::"r"(val));
</font> break;
case PMC_PMN3:
<font color='#880000'>- asm volatile("mcr p14,0,%0,c3,c2,0\n"::"r"(val));
</font><font color='#000088'>+ __asm__ volatile("mcr p14,0,%0,c3,c2,0\n"::"r"(val));
</font> break;
default:
break;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/arm/shared/include/arm-cp15.h:1.2 rtems/c/src/lib/libcpu/arm/shared/include/arm-cp15.h:1.3
--- rtems/c/src/lib/libcpu/arm/shared/include/arm-cp15.h:1.2 Fri Apr 9 07:30:39 2010
+++ rtems/c/src/lib/libcpu/arm/shared/include/arm-cp15.h Fri Feb 11 03:32:25 2011
</font><font color='#997700'>@@ -109,7 +109,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c0, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -124,7 +124,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c0, c0, 2\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -139,7 +139,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c1, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -153,7 +153,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[val], c1, c0, 0\n"
"nop\n"
<font color='#997700'>@@ -176,7 +176,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t *base;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[base], c2, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -190,7 +190,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[base], c2, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -204,7 +204,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c3, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -218,7 +218,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[val], c3, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -232,7 +232,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c5, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -246,7 +246,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[val], c5, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -260,7 +260,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c5, c0, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -274,7 +274,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[val], c5, c0, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -288,7 +288,7 @@
</font> ARM_SWITCH_REGISTERS;
void *mva;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[mva], c6, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -302,7 +302,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c6, c0, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -316,7 +316,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c8, c7, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -331,7 +331,7 @@
</font>
mva = ARM_CP15_TLB_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c8, c7, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -345,7 +345,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c8, c5, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -360,7 +360,7 @@
</font>
mva = ARM_CP15_TLB_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c8, c5, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -374,7 +374,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c8, c6, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -389,7 +389,7 @@
</font>
mva = ARM_CP15_TLB_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c8, c6, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -402,7 +402,7 @@
</font> {
uint32_t arm_switch_reg;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"add %[arm_switch_reg], pc, #16\n"
"mcr p15, 0, %[arm_switch_reg], c7, c13, 1\n"
<font color='#997700'>@@ -433,7 +433,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t val;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrc p15, 0, %[val], c0, c0, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -448,7 +448,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c7, c7, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -463,7 +463,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c7, c5, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -479,7 +479,7 @@
</font>
mva = ARM_CP15_CACHE_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c7, c5, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -493,7 +493,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[set_and_way], c7, c5, 2\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -509,7 +509,7 @@
</font>
mva = ARM_CP15_CACHE_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c7, c13, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -523,7 +523,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c7, c6, 0\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -539,7 +539,7 @@
</font>
mva = ARM_CP15_CACHE_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c7, c6, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -553,7 +553,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[set_and_way], c7, c6, 2\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -569,7 +569,7 @@
</font>
mva = ARM_CP15_CACHE_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c7, c10, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -583,7 +583,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[set_and_way], c7, c10, 2\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -597,7 +597,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"1:\n"
"mrc p15, 0, r15, c7, c10, 3\n"
<font color='#997700'>@@ -615,7 +615,7 @@
</font>
mva = ARM_CP15_CACHE_PREPARE_MVA(mva);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[mva], c7, c14, 1\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -629,7 +629,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[set_and_way], c7, c14, 2\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -643,7 +643,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"1:\n"
"mrc p15, 0, r15, c7, c14, 3\n"
<font color='#997700'>@@ -662,7 +662,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c7, c10, 4\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -677,7 +677,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t sbz = 0;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mcr p15, 0, %[sbz], c7, c0, 4\n"
ARM_SWITCH_BACK
</pre>
<p> </p>
<a name='cs13'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/bfin/ChangeLog.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>c/src/lib/libcpu/bfin/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/bfin/timer/timer.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>c/src/lib/libcpu/bfin/timer/timer.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/bfin/ChangeLog:1.15 rtems/c/src/lib/libcpu/bfin/ChangeLog:1.16
--- rtems/c/src/lib/libcpu/bfin/ChangeLog:1.15 Wed Feb 2 09:00:51 2011
+++ rtems/c/src/lib/libcpu/bfin/ChangeLog Fri Feb 11 03:33:06 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * timer/timer.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/bfin/timer/timer.c:1.5 rtems/c/src/lib/libcpu/bfin/timer/timer.c:1.6
--- rtems/c/src/lib/libcpu/bfin/timer/timer.c:1.5 Sun Nov 29 23:03:49 2009
+++ rtems/c/src/lib/libcpu/bfin/timer/timer.c Fri Feb 11 03:33:06 2011
</font><font color='#997700'>@@ -33,13 +33,13 @@
</font> {
/*reset counters*/
<font color='#880000'>- asm ("R2 = 0;");
- asm ("CYCLES = R2;");
- asm ("CYCLES2 = R2;");
</font><font color='#000088'>+ __asm__ ("R2 = 0;");
+ __asm__ ("CYCLES = R2;");
+ __asm__ ("CYCLES2 = R2;");
</font> /*start counters*/
<font color='#880000'>- asm ("R2 = SYSCFG;");
- asm ("BITSET(R2,1);");
- asm ("SYSCFG = R2");
</font><font color='#000088'>+ __asm__ ("R2 = SYSCFG;");
+ __asm__ ("BITSET(R2,1);");
+ __asm__ ("SYSCFG = R2");
</font>
}
<font color='#997700'>@@ -62,13 +62,13 @@
</font> {
uint32_t clicks;
uint32_t total;
<font color='#880000'>- register uint32_t cycles asm ("R2");
</font><font color='#000088'>+ register uint32_t cycles __asm__ ("R2");
</font>
/* stop counter */
<font color='#880000'>- asm("R2 = SYSCFG;");
- asm("BITCLR(R2,1);");
- asm("SYSCFG = R2;");
- asm("R2 = CYCLES;");
</font><font color='#000088'>+ __asm__ ("R2 = SYSCFG;");
+ __asm__ ("BITCLR(R2,1);");
+ __asm__ ("SYSCFG = R2;");
+ __asm__ ("R2 = CYCLES;");
</font>
clicks = cycles; /* Clock cycles */
</pre>
<p> </p>
<a name='cs14'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cache.c, cpu.h, cpuModel.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/i386/ChangeLog.diff?r1=text&tr1=1.68&r2=text&tr2=1.69&diff_format=h">M</a></td><td width='1%'>1.69</td><td width='100%'>c/src/lib/libcpu/i386/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/i386/cache.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libcpu/i386/cache.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/i386/cpu.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>c/src/lib/libcpu/i386/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/i386/cpuModel.h.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/lib/libcpu/i386/cpuModel.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/i386/ChangeLog:1.68 rtems/c/src/lib/libcpu/i386/ChangeLog:1.69
--- rtems/c/src/lib/libcpu/i386/ChangeLog:1.68 Wed Feb 2 09:00:52 2011
+++ rtems/c/src/lib/libcpu/i386/ChangeLog Fri Feb 11 03:33:50 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cache.c, cpu.h, cpuModel.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/i386/cache.c:1.7 rtems/c/src/lib/libcpu/i386/cache.c:1.8
--- rtems/c/src/lib/libcpu/i386/cache.c:1.7 Fri May 21 14:03:21 2010
+++ rtems/c/src/lib/libcpu/i386/cache.c Fri Feb 11 03:33:50 2011
</font><font color='#997700'>@@ -53,11 +53,11 @@
</font>
void _CPU_cache_flush_entire_data(void)
{
<font color='#880000'>- asm volatile ("wbinvd");
</font><font color='#000088'>+ __asm__ volatile ("wbinvd");
</font> }
void _CPU_cache_invalidate_entire_data(void)
{
<font color='#880000'>- asm volatile ("invd");
</font><font color='#000088'>+ __asm__ volatile ("invd");
</font> }
void _CPU_cache_enable_data(void)
<font color='#997700'>@@ -72,7 +72,7 @@
</font>
void _CPU_cache_invalidate_entire_instruction(void)
{
<font color='#880000'>- asm volatile ("invd");
</font><font color='#000088'>+ __asm__ volatile ("invd");
</font> }
void _CPU_cache_enable_instruction(void)
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/i386/cpu.h:1.15 rtems/c/src/lib/libcpu/i386/cpu.h:1.16
--- rtems/c/src/lib/libcpu/i386/cpu.h:1.15 Fri Jan 28 14:38:09 2011
+++ rtems/c/src/lib/libcpu/i386/cpu.h Fri Feb 11 03:33:50 2011
</font><font color='#997700'>@@ -37,56 +37,56 @@
</font> * "macro" implementation of the generic code is used.
*/
<font color='#880000'>-static inline unsigned short i386_get_cs()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_cs(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%cs,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%cs,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#880000'>-static inline unsigned short i386_get_ds()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_ds(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%ds,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%ds,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#880000'>-static inline unsigned short i386_get_es()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_es(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%es,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%es,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#880000'>-static inline unsigned short i386_get_ss()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_ss(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%ss,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%ss,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#880000'>-static inline unsigned short i386_get_fs()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_fs(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%fs,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%fs,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#880000'>-static inline unsigned short i386_get_gs()
</font><font color='#000088'>+static __inline__ unsigned short i386_get_gs(void)
</font> {
register unsigned short segment = 0;
<font color='#880000'>- asm volatile ( "movw %%gs,%0" : "=r" (segment) : "0" (segment) );
</font><font color='#000088'>+ __asm__ volatile ( "movw %%gs,%0" : "=r" (segment) : "0" (segment) );
</font>
return segment;
}
<font color='#997700'>@@ -99,28 +99,28 @@
</font> do { register unsigned short __port = _port; \
register unsigned char __value = _value; \
\
<font color='#880000'>- asm volatile ( "outb %0,%1" : : "a" (__value), "d" (__port) ); \
</font><font color='#000088'>+ __asm__ volatile ( "outb %0,%1" : : "a" (__value), "d" (__port) ); \
</font> } while (0)
#define i386_outport_word( _port, _value ) \
do { register unsigned short __port = _port; \
register unsigned short __value = _value; \
\
<font color='#880000'>- asm volatile ( "outw %0,%1" : : "a" (__value), "d" (__port) ); \
</font><font color='#000088'>+ __asm__ volatile ( "outw %0,%1" : : "a" (__value), "d" (__port) ); \
</font> } while (0)
#define i386_outport_long( _port, _value ) \
do { register unsigned short __port = _port; \
register unsigned int __value = _value; \
\
<font color='#880000'>- asm volatile ( "outl %0,%1" : : "a" (__value), "d" (__port) ); \
</font><font color='#000088'>+ __asm__ volatile ( "outl %0,%1" : : "a" (__value), "d" (__port) ); \
</font> } while (0)
#define i386_inport_byte( _port, _value ) \
do { register unsigned short __port = _port; \
register unsigned char __value = 0; \
\
<font color='#880000'>- asm volatile ( "inb %1,%0" : "=a" (__value) \
</font><font color='#000088'>+ __asm__ volatile ( "inb %1,%0" : "=a" (__value) \
</font> : "d" (__port) \
); \
_value = __value; \
<font color='#997700'>@@ -130,7 +130,7 @@
</font> do { register unsigned short __port = _port; \
register unsigned short __value = 0; \
\
<font color='#880000'>- asm volatile ( "inw %1,%0" : "=a" (__value) \
</font><font color='#000088'>+ __asm__ volatile ( "inw %1,%0" : "=a" (__value) \
</font> : "d" (__port) \
); \
_value = __value; \
<font color='#997700'>@@ -140,7 +140,7 @@
</font> do { register unsigned short __port = _port; \
register unsigned int __value = 0; \
\
<font color='#880000'>- asm volatile ( "inl %1,%0" : "=a" (__value) \
</font><font color='#000088'>+ __asm__ volatile ( "inl %1,%0" : "=a" (__value) \
</font> : "d" (__port) \
); \
_value = __value; \
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/i386/cpuModel.h:1.8 rtems/c/src/lib/libcpu/i386/cpuModel.h:1.9
--- rtems/c/src/lib/libcpu/i386/cpuModel.h:1.8 Thu Apr 15 09:09:57 2010
+++ rtems/c/src/lib/libcpu/i386/cpuModel.h Fri Feb 11 03:33:50 2011
</font><font color='#997700'>@@ -43,7 +43,7 @@
</font> {
/* Return the value of the on-chip cycle counter. */
unsigned long long result;
<font color='#880000'>- asm volatile(".byte 0x0F, 0x31" : "=A" (result));
</font><font color='#000088'>+ __asm__ volatile(".byte 0x0F, 0x31" : "=A" (result));
</font> return result;
} /* rdtsc */
</pre>
<p> </p>
<a name='cs15'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* mcf5225x/network/fec.c, mcf5235/cache/cachepd.c,
mcf532x/cache/cachepd.c, shared/cache/cache.c, shared/misc/m68kidle.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/ChangeLog.diff?r1=text&tr1=1.108&r2=text&tr2=1.109&diff_format=h">M</a></td><td width='1%'>1.109</td><td width='100%'>c/src/lib/libcpu/m68k/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/mcf5225x/network/fec.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libcpu/m68k/mcf5225x/network/fec.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/shared/cache/cache.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>c/src/lib/libcpu/m68k/shared/cache/cache.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>c/src/lib/libcpu/m68k/shared/misc/m68kidle.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/ChangeLog:1.108 rtems/c/src/lib/libcpu/m68k/ChangeLog:1.109
--- rtems/c/src/lib/libcpu/m68k/ChangeLog:1.108 Wed Feb 2 09:00:55 2011
+++ rtems/c/src/lib/libcpu/m68k/ChangeLog Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * mcf5225x/network/fec.c, mcf5235/cache/cachepd.c,
+ mcf532x/cache/cachepd.c, shared/cache/cache.c, shared/misc/m68kidle.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/mcf5225x/network/fec.c:1.1 rtems/c/src/lib/libcpu/m68k/mcf5225x/network/fec.c:1.2
--- rtems/c/src/lib/libcpu/m68k/mcf5225x/network/fec.c:1.1 Mon Apr 5 12:11:48 2010
+++ rtems/c/src/lib/libcpu/m68k/mcf5225x/network/fec.c Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -175,7 +175,7 @@
</font>
MCF_FEC_ECR |= MCF_FEC_ECR_RESET;
<font color='#880000'>- while (MCF_FEC_ECR&MCF_FEC_ECR_RESET) asm("nop");
</font><font color='#000088'>+ while (MCF_FEC_ECR&MCF_FEC_ECR_RESET) __asm__ ("nop");
</font>
if (if_config->phy_init) if_config->phy_init(); /* call application specific optional extern phy initialization function */
<font color='#997700'>@@ -233,7 +233,7 @@
</font> {
MCF_FEC_MMFR = MCF_FEC_MMFR_ST(0x1) | MCF_FEC_MMFR_OP_WRITE | (MCF_FEC_MMFR_PA(phy_addr)) | MCF_FEC_MMFR_RA(reg_addr) | MCF_FEC_MMFR_TA_10 | data;
smi_init(bsp_get_CPU_clock_speed()); /* enable MII clock speed after MMFR is written */
<font color='#880000'>- while ((MCF_FEC_EIR & MCF_FEC_EIR_MII) == 0) { asm("nop"); }
</font><font color='#000088'>+ while ((MCF_FEC_EIR & MCF_FEC_EIR_MII) == 0) { __asm__ ("nop"); }
</font> smi_init(0); /* MII frame sent, disable clock until next operation */
MCF_FEC_EIR |= MCF_FEC_EIR_MII;
}
<font color='#997700'>@@ -242,7 +242,7 @@
</font> {
MCF_FEC_MMFR = MCF_FEC_MMFR_ST(0x1) | MCF_FEC_MMFR_OP_READ | (MCF_FEC_MMFR_PA(phy_addr)) | MCF_FEC_MMFR_RA(reg_addr) | MCF_FEC_MMFR_TA_10;
smi_init(bsp_get_CPU_clock_speed()); /* enable MII clock speed after MMFR is written */
<font color='#880000'>- while ((MCF_FEC_EIR & MCF_FEC_EIR_MII) == 0) { asm("nop"); }
</font><font color='#000088'>+ while ((MCF_FEC_EIR & MCF_FEC_EIR_MII) == 0) { __asm__ ("nop"); }
</font> smi_init(0); /* MII frame sent, disable clock until next operation */
MCF_FEC_EIR |= MCF_FEC_EIR_MII;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c:1.2 rtems/c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c:1.3
--- rtems/c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c:1.2 Sun Nov 29 23:24:55 2009
+++ rtems/c/src/lib/libcpu/m68k/mcf5235/cache/cachepd.c Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -63,7 +63,7 @@
</font> * Top half of cache is I-space
*/
addr = (void *)((int)addr | 0x400);
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
</font> }
void _CPU_cache_enable_data(void)
<font color='#997700'>@@ -97,5 +97,5 @@
</font> * Bottom half of cache is D-space
*/
addr = (void *)((int)addr & ~0x400);
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (addr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (addr));
</font> }
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c:1.2 rtems/c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c:1.3
--- rtems/c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c:1.2 Sun Nov 29 23:25:40 2009
+++ rtems/c/src/lib/libcpu/m68k/mcf532x/cache/cachepd.c Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -7,7 +7,7 @@
</font> #include <rtems.h>
#include <mcf532x/mcf532x.h>
<font color='#880000'>-#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
</font><font color='#000088'>+#define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
</font>
/*
* Read/write copy of common cache
<font color='#997700'>@@ -41,13 +41,13 @@
</font> {
register unsigned long adr = (((unsigned long) d_addr >> 4) & 0xff) << 4;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> }
void _CPU_cache_flush_entire_data(void)
<font color='#997700'>@@ -56,13 +56,13 @@
</font>
for(set = 0; set < 256; ++set) {
adr = (set << 4);
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> }
}
<font color='#997700'>@@ -101,13 +101,13 @@
</font> {
register unsigned long adr = (((unsigned long) addr >> 4) & 0xff) << 4;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> adr += 1;
<font color='#880000'>- asm volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font><font color='#000088'>+ __asm__ volatile ("cpushl %%bc,(%0)" :: "a" (adr));
</font> }
void _CPU_cache_enable_data(void)
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/shared/cache/cache.c:1.5 rtems/c/src/lib/libcpu/m68k/shared/cache/cache.c:1.6
--- rtems/c/src/lib/libcpu/m68k/shared/cache/cache.c:1.5 Tue Dec 8 07:36:55 2009
+++ rtems/c/src/lib/libcpu/m68k/shared/cache/cache.c Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -19,7 +19,7 @@
</font> { \
register unsigned long _value = mask; \
register unsigned long _ctl = 0; \
<font color='#880000'>- asm volatile ( "movec %%cacr, %0; /* read the cacr */ \
</font><font color='#000088'>+ __asm__ volatile ( "movec %%cacr, %0; /* read the cacr */ \
</font> andl %2, %0; /* and with _val */ \
movec %1, %%cacr" /* write the cacr */ \
: "=d" (_ctl) : "0" (_ctl), "d" (_value) : "%%cc" ); \
<font color='#997700'>@@ -33,7 +33,7 @@
</font> { \
register unsigned long _value = mask; \
register unsigned long _ctl = 0; \
<font color='#880000'>- asm volatile ( "movec %%cacr, %0; /* read the cacr */ \
</font><font color='#000088'>+ __asm__ volatile ( "movec %%cacr, %0; /* read the cacr */ \
</font> orl %2, %0; /* or with _val */ \
movec %1, %%cacr" /* write the cacr */ \
: "=d" (_ctl) : "0" (_ctl), "d" (_value) : "%%cc" ); \
<font color='#997700'>@@ -59,7 +59,7 @@
</font> const void * d_addr )
{
void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
<font color='#880000'>- asm volatile ( "movec %0, %%caar" :: "a" (p_address) ); /* write caar */
</font><font color='#000088'>+ __asm__ volatile ( "movec %0, %%caar" :: "a" (p_address) ); /* write caar */
</font> _CPU_CACR_OR(0x00000400);
}
<font color='#997700'>@@ -95,7 +95,7 @@
</font> const void * d_addr )
{
void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
<font color='#880000'>- asm volatile ( "movec %0, %%caar" :: "a" (p_address) ); /* write caar */
</font><font color='#000088'>+ __asm__ volatile ( "movec %0, %%caar" :: "a" (p_address) ); /* write caar */
</font> _CPU_CACR_OR( 0x00000004 );
}
<font color='#997700'>@@ -137,14 +137,14 @@
</font> const void * d_addr )
{
void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
<font color='#880000'>- asm volatile ( "cpushl %%dc,(%0)" :: "a" (p_address) );
</font><font color='#000088'>+ __asm__ volatile ( "cpushl %%dc,(%0)" :: "a" (p_address) );
</font> }
void _CPU_cache_invalidate_1_data_line (
const void * d_addr )
{
void * p_address = (void *) _CPU_virtual_to_physical( d_addr );
<font color='#880000'>- asm volatile ( "cinvl %%dc,(%0)" :: "a" (p_address) );
</font><font color='#000088'>+ __asm__ volatile ( "cinvl %%dc,(%0)" :: "a" (p_address) );
</font> }
void _CPU_cache_flush_entire_data ( void )
<font color='#997700'>@@ -171,7 +171,7 @@
</font> const void * i_addr )
{
void * p_address = (void *) _CPU_virtual_to_physical( i_addr );
<font color='#880000'>- asm volatile ( "cinvl %%ic,(%0)" :: "a" (p_address) );
</font><font color='#000088'>+ __asm__ volatile ( "cinvl %%ic,(%0)" :: "a" (p_address) );
</font> }
void _CPU_cache_invalidate_entire_instruction ( void )
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c:1.6 rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c:1.7
--- rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c:1.6 Sun Nov 29 23:09:41 2009
+++ rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c Fri Feb 11 03:36:44 2011
</font><font color='#997700'>@@ -33,11 +33,11 @@
</font> {
#if defined(mcf5272)
for( ; ; ) {
<font color='#880000'>- asm volatile( "nop" );
- asm volatile( "nop" );
</font><font color='#000088'>+ __asm__ volatile( "nop" );
+ __asm__ volatile( "nop" );
</font> }
#else
for( ; ; )
<font color='#880000'>- asm volatile( "stop #0x3000":::"cc" ); /* supervisor mode, all interrupts on */
</font><font color='#000088'>+ __asm__ volatile( "stop #0x3000":::"cc" ); /* supervisor mode, all interrupts on */
</font> #endif
}
</pre>
<p> </p>
<a name='cs16'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* au1x00/vectorisrs/vectorisrs.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/mips/ChangeLog.diff?r1=text&tr1=1.101&r2=text&tr2=1.102&diff_format=h">M</a></td><td width='1%'>1.102</td><td width='100%'>c/src/lib/libcpu/mips/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/mips/ChangeLog:1.101 rtems/c/src/lib/libcpu/mips/ChangeLog:1.102
--- rtems/c/src/lib/libcpu/mips/ChangeLog:1.101 Wed Feb 2 09:00:56 2011
+++ rtems/c/src/lib/libcpu/mips/ChangeLog Fri Feb 11 03:37:38 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * au1x00/vectorisrs/vectorisrs.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c:1.5 rtems/c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c:1.6
--- rtems/c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c:1.5 Fri May 28 01:09:35 2010
+++ rtems/c/src/lib/libcpu/mips/au1x00/vectorisrs/vectorisrs.c Fri Feb 11 03:37:38 2011
</font><font color='#997700'>@@ -46,7 +46,7 @@
</font> * I don't see a good way to disable the compare
* interrupt, so let's just ignore it.
*/
<font color='#880000'>- asm volatile ("mtc0 %0, $11\n" :: "r" (zero));
</font><font color='#000088'>+ __asm__ volatile ("mtc0 %0, $11\n" :: "r" (zero));
</font>
/* CALL_ISR( AU1X00_IRQ_CNT, frame ); */
}
</pre>
<p> </p>
<a name='cs17'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* e500/mmu/mmu.c, mpc505/ictrl/ictrl.c, mpc505/timer/timer.c,
mpc5xx/ictrl/ictrl.c, mpc5xx/timer/timer.c,
mpc6xx/altivec/vec_sup.c, mpc6xx/clock/c_clock.c,
mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/pte121.c,
mpc8260/timer/timer.c, mpc8xx/timer/timer.c, new-exceptions/cpu.c,
new-exceptions/bspsupport/ppc_exc_initialize.c,
ppc403/clock/clock.c, ppc403/console/console.c,
ppc403/console/console.c.polled, ppc403/console/console405.c,
ppc403/irq/ictrl.c, ppc403/tty_drv/tty_drv.c,
rtems/powerpc/cache.h, shared/include/powerpc-utility.h, shared/src/cache.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ChangeLog.diff?r1=text&tr1=1.373&r2=text&tr2=1.374&diff_format=h">M</a></td><td width='1%'>1.374</td><td width='100%'>c/src/lib/libcpu/powerpc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/e500/mmu/mmu.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libcpu/powerpc/e500/mmu/mmu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc505/timer/timer.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c.diff?r1=text&tr1=1.24&r2=text&tr2=1.25&diff_format=h">M</a></td><td width='1%'>1.25</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c.diff?r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h">M</a></td><td width='1%'>1.28</td><td width='100%'>c/src/lib/libcpu/powerpc/new-exceptions/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c.diff?r1=text&tr1=1.31&r2=text&tr2=1.32&diff_format=h">M</a></td><td width='1%'>1.32</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/clock/clock.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/console/console.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/console/console405.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/console/console405.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/shared/src/cache.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libcpu/powerpc/shared/src/cache.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.373 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.374
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.373 Wed Feb 2 09:01:00 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -1,3 +1,17 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * e500/mmu/mmu.c, mpc505/ictrl/ictrl.c, mpc505/timer/timer.c,
+ mpc5xx/ictrl/ictrl.c, mpc5xx/timer/timer.c,
+ mpc6xx/altivec/vec_sup.c, mpc6xx/clock/c_clock.c,
+ mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/pte121.c,
+ mpc8260/timer/timer.c, mpc8xx/timer/timer.c, new-exceptions/cpu.c,
+ new-exceptions/bspsupport/ppc_exc_initialize.c,
+ ppc403/clock/clock.c, ppc403/console/console.c,
+ ppc403/console/console.c.polled, ppc403/console/console405.c,
+ ppc403/irq/ictrl.c, ppc403/tty_drv/tty_drv.c,
+ rtems/powerpc/cache.h, shared/include/powerpc-utility.h, shared/src/cache.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/e500/mmu/mmu.c:1.4 rtems/c/src/lib/libcpu/powerpc/e500/mmu/mmu.c:1.5
--- rtems/c/src/lib/libcpu/powerpc/e500/mmu/mmu.c:1.4 Mon Jan 31 09:48:22 2011
+++ rtems/c/src/lib/libcpu/powerpc/e500/mmu/mmu.c Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -99,9 +99,9 @@
</font> /* Factory to generate inline macros for accessing the MAS registers */
#define __RDWRMAS(mas,rmas) \
static inline uint32_t _read_MAS##mas(void) \
<font color='#880000'>- { uint32_t x; asm volatile("mfspr %0, %1": "=r"(x):"i"(rmas)); return x; } \
</font><font color='#000088'>+ { uint32_t x; __asm__ volatile("mfspr %0, %1": "=r"(x):"i"(rmas)); return x; } \
</font> static inline void _write_MAS##mas(uint32_t x) \
<font color='#880000'>- { asm volatile("mtspr %1, %0":: "r"(x),"i"(rmas)); }
</font><font color='#000088'>+ { __asm__ volatile("mtspr %1, %0":: "r"(x),"i"(rmas)); }
</font>
__RDWRMAS(0,FSL_EIS_MAS0)
__RDWRMAS(1,FSL_EIS_MAS1)
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c:1.2 rtems/c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c:1.3
--- rtems/c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c:1.2 Tue Apr 13 05:03:32 2004
+++ rtems/c/src/lib/libcpu/powerpc/mpc505/ictrl/ictrl.c Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> static rtems_isr extIsr_( rtems_vector_number i )
{
#define BIT_NUMBER(val, bit) \
<font color='#880000'>- asm volatile ( "cntlzw %0, %1; srawi %0, %0, 1": "=r" (bit) : "r" (val) );
</font><font color='#000088'>+ __asm__ volatile ( "cntlzw %0, %1; srawi %0, %0, 1": "=r" (bit) : "r" (val) );
</font>
int bit;
(void)i;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c:1.6 rtems/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c:1.7
--- rtems/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c:1.6 Fri Sep 5 07:11:47 2008
+++ rtems/c/src/lib/libcpu/powerpc/mpc505/timer/timer.c Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -22,7 +22,7 @@
</font>
void benchmark_timer_initialize( void )
{
<font color='#880000'>- asm volatile( " mftb %0": "=r" (lastInitValue) );
</font><font color='#000088'>+ __asm__ volatile( " mftb %0": "=r" (lastInitValue) );
</font> }
/*
<font color='#997700'>@@ -43,7 +43,7 @@
</font> int benchmark_timer_read( void )
{
uint32_t value;
<font color='#880000'>- asm volatile ( " mftb %0": "=r" (value) );
</font><font color='#000088'>+ __asm__ volatile ( " mftb %0": "=r" (value) );
</font> return value - lastInitValue;
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c:1.2 rtems/c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c:1.3
--- rtems/c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c:1.2 Tue Apr 13 05:03:32 2004
+++ rtems/c/src/lib/libcpu/powerpc/mpc5xx/ictrl/ictrl.c Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> static rtems_isr extIsr_( rtems_vector_number i )
{
#define BIT_NUMBER(val, bit) \
<font color='#880000'>- asm volatile ( "cntlzw %0, %1; srawi %0, %0, 1": "=r" (bit) : "r" (val) );
</font><font color='#000088'>+ __asm__ volatile ( "cntlzw %0, %1; srawi %0, %0, 1": "=r" (bit) : "r" (val) );
</font>
int bit;
(void)i;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c:1.9 rtems/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c:1.10
--- rtems/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c:1.9 Wed Apr 28 12:17:59 2010
+++ rtems/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c Fri Feb 11 03:46:52 2011
</font><font color='#997700'>@@ -64,7 +64,7 @@
</font> {
uint32_t ret;
<font color='#880000'>- asm volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font><font color='#000088'>+ __asm__ volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font>
return ret;
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.2 rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.3
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.2 Tue Dec 1 19:57:45 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -141,8 +141,8 @@
</font> */
static void dummy(void) __attribute__((noinline));
<font color='#880000'>-/* add (empty) asm statement to make sure this isn't optimized away */
-static void dummy(void) { asm volatile(""); }
</font><font color='#000088'>+/* add (empty) __asm__ statement to make sure this isn't optimized away */
+static void dummy(void) { __asm__ volatile(""); }
</font>
static unsigned probe_r1(void) __attribute__((noinline));
static unsigned probe_r1(void)
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c:1.24 rtems/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c:1.25
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c:1.24 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -133,7 +133,7 @@
</font> do {
register uint32_t flags;
rtems_interrupt_disable(flags);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfdec %0; add %0, %0, %1; mtdec %0"
: "=&r"(decr)
: "r"(Clock_Decrementer_value));
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.11 rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.12
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.11 Fri Jan 28 14:38:12 2011
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -65,7 +65,7 @@
</font> /* Same as getdbat but reads IBAT */
extern int getibat(int bat_index, unsigned long *pu, unsigned long *pl);
<font color='#880000'>-/* Do not use the asm routines; they are obsolete; use setdbat() instead */
</font><font color='#000088'>+/* Do not use the __asm__ routines; they are obsolete; use setdbat() instead */
</font> extern void asm_setdbat0(unsigned int uperPart, unsigned int lowerPart);
extern void asm_setdbat1(unsigned int uperPart, unsigned int lowerPart);
extern void asm_setdbat2(unsigned int uperPart, unsigned int lowerPart);
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:1.20 rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:1.21
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c:1.20 Fri Jan 28 14:38:12 2011
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -124,7 +124,7 @@
</font> static void
set_hid0_sync (unsigned long val)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> " sync \n"
" isync \n"
" mtspr %0, %1 \n"
<font color='#997700'>@@ -221,7 +221,7 @@
</font> * rely on consistent compiler flags).
*/
#define DSSALL 0x7e00066c /* dssall opcode */
<font color='#880000'>- asm volatile (" .long %0"::"i" (DSSALL));
</font><font color='#000088'>+ __asm__ volatile (" .long %0"::"i" (DSSALL));
</font> #undef DSSALL
}
}
<font color='#997700'>@@ -287,7 +287,7 @@
</font> if (0xffffffff == size) {
bit = 32;
} else {
<font color='#880000'>- asm volatile (" cntlzw %0, %1":"=r" (bit):"r" (size));
</font><font color='#000088'>+ __asm__ volatile (" cntlzw %0, %1":"=r" (bit):"r" (size));
</font> bit = 31 - bit;
if (1 << bit != size)
return -1;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c:1.19 rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c:1.20
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c:1.19 Tue Dec 1 18:22:42 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -157,7 +157,7 @@
</font> static uint32_t
seg2vsid (uint32_t ea)
{
<font color='#880000'>- asm volatile ("mfsrin %0, %0":"=r" (ea):"0" (ea));
</font><font color='#000088'>+ __asm__ volatile ("mfsrin %0, %0":"=r" (ea):"0" (ea));
</font> return ea & ((1 << LD_VSID_SIZE) - 1);
}
#else
<font color='#997700'>@@ -539,9 +539,9 @@
</font> uint32_t flags;
rtems_interrupt_disable (flags);
/* order setting 'v' after writing everything else */
<font color='#880000'>- asm volatile ("eieio":::"memory");
</font><font color='#000088'>+ __asm__ volatile ("eieio":::"memory");
</font> pte->v = 1;
<font color='#880000'>- asm volatile ("sync":::"memory");
</font><font color='#000088'>+ __asm__ volatile ("sync":::"memory");
</font> rtems_interrupt_enable (flags);
} else {
pte->v = 1;
<font color='#997700'>@@ -869,7 +869,7 @@
</font> rtems_interrupt_disable (flags);
pte->v = 0;
do_dssall ();
<font color='#880000'>- asm volatile (" sync \n\t"
</font><font color='#000088'>+ __asm__ volatile (" sync \n\t"
</font> " tlbie %0 \n\t"
" eieio \n\t"
" tlbsync \n\t"
<font color='#997700'>@@ -916,7 +916,7 @@
</font> * rely on consistent compiler flags).
*/
#define DSSALL 0x7e00066c /* dssall opcode */
<font color='#880000'>- asm volatile (" .long %0"::"i" (DSSALL));
</font><font color='#000088'>+ __asm__ volatile (" .long %0"::"i" (DSSALL));
</font> #undef DSSALL
}
}
<font color='#997700'>@@ -946,21 +946,21 @@
</font> if (wimg < 0 && pp < 0)
return pte;
<font color='#880000'>- asm volatile ("mfmsr %0":"=r" (msr));
</font><font color='#000088'>+ __asm__ volatile ("mfmsr %0":"=r" (msr));
</font>
/* switch MMU and IRQs off */
SYNC_LONGJMP (msr & ~(MSR_EE | MSR_DR | MSR_IR));
pte->v = 0;
do_dssall ();
<font color='#880000'>- asm volatile ("sync":::"memory");
</font><font color='#000088'>+ __asm__ volatile ("sync":::"memory");
</font> if (wimg >= 0)
pte->wimg = wimg;
if (pp >= 0)
pte->pp = pp;
<font color='#880000'>- asm volatile ("tlbie %0; eieio"::"r" (ea):"memory");
</font><font color='#000088'>+ __asm__ volatile ("tlbie %0; eieio"::"r" (ea):"memory");
</font> pte->v = 1;
<font color='#880000'>- asm volatile ("tlbsync; sync":::"memory");
</font><font color='#000088'>+ __asm__ volatile ("tlbsync; sync":::"memory");
</font>
/* restore, i.e., switch MMU and IRQs back on */
SYNC_LONGJMP (msr);
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c:1.10 rtems/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c:1.11
--- rtems/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c:1.10 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -60,7 +60,7 @@
</font> {
uint32_t ret;
<font color='#880000'>- asm volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font><font color='#000088'>+ __asm__ volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font>
return ret;
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c:1.13 rtems/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c:1.14
--- rtems/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c:1.13 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -57,7 +57,7 @@
</font> {
uint32_t ret;
<font color='#880000'>- asm volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font><font color='#000088'>+ __asm__ volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
</font>
return ret;
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c:1.7 rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c:1.8
--- rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c:1.7 Fri Jan 28 14:38:13 2011
+++ rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -30,8 +30,8 @@
</font>
uint32_t ppc_exc_cache_wb_check = 1;
<font color='#880000'>-#define MTIVPR(prefix) asm volatile ("mtivpr %0" : : "r" (prefix))
-#define MTIVOR(x, vec) asm volatile ("mtivor"#x" %0" : : "r" (vec))
</font><font color='#000088'>+#define MTIVPR(prefix) __asm__ volatile ("mtivpr %0" : : "r" (prefix))
+#define MTIVOR(x, vec) __asm__ volatile ("mtivor"#x" %0" : : "r" (vec))
</font>
static void ppc_exc_initialize_booke(void)
{
<font color='#997700'>@@ -94,7 +94,7 @@
</font> /* Assembly code needs SDA_BASE in r13 (SVR4 or EABI). Make sure
* early init code put it there.
*/
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "lis %0, _SDA_BASE_@h\n"
"ori %0, %0, _SDA_BASE_@l\n"
"mr %1, 13\n"
<font color='#997700'>@@ -174,7 +174,7 @@
</font> * ATM.
*/
p = (p + 31U) & ~31U;
<font color='#880000'>- asm volatile ("dcbz 0, %0"::"b" (p));
</font><font color='#000088'>+ __asm__ volatile ("dcbz 0, %0"::"b" (p));
</font> /* If we make it thru here then things seem to be OK */
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c:1.27 rtems/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c:1.28
--- rtems/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c:1.27 Tue Dec 1 19:41:57 2009
+++ rtems/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -132,7 +132,7 @@
</font> */
{ uint32_t r2 = 0;
unsigned r13 = 0;
<font color='#880000'>- asm volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));
</font><font color='#000088'>+ __asm__ volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));
</font>
the_context->gpr2 = r2;
the_context->gpr13 = r13;
<font color='#997700'>@@ -140,7 +140,7 @@
</font> #elif (PPC_ABI == PPC_ABI_EABI)
{ uint32_t r2 = 0;
unsigned r13 = 0;
<font color='#880000'>- asm volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));
</font><font color='#000088'>+ __asm__ volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));
</font>
the_context->gpr2 = r2;
the_context->gpr13 = r13;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c:1.31 rtems/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c:1.32
--- rtems/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c:1.31 Sun Apr 25 11:10:35 2010
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -73,9 +73,9 @@
</font> register uint32_t rc;
#ifndef ppc405 /* this is a ppc403 */
<font color='#880000'>- asm volatile ("mfspr %0, 0x3dd" : "=r" ((rc))); /* TBLO */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x3dd" : "=r" ((rc))); /* TBLO */
</font> #else /* ppc405 */
<font color='#880000'>- asm volatile ("mfspr %0, 0x10c" : "=r" ((rc))); /* 405GP TBL */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x10c" : "=r" ((rc))); /* 405GP TBL */
</font> #endif /* ppc405 */
return rc;
<font color='#997700'>@@ -135,11 +135,11 @@
</font> /* XXX: count these! this should never happen :-) */
}
<font color='#880000'>- asm volatile ("mtspr 0x3db, %0" :: "r"
</font><font color='#000088'>+ __asm__ volatile ("mtspr 0x3db, %0" :: "r"
</font> (clicks_til_next_interrupt)); /* PIT */
}
<font color='#880000'>- asm volatile ( "mtspr 0x3d8, %0" :: "r" (0x08000000)); /* TSR */
</font><font color='#000088'>+ __asm__ volatile ( "mtspr 0x3d8, %0" :: "r" (0x08000000)); /* TSR */
</font>
Clock_driver_ticks++;
<font color='#997700'>@@ -160,7 +160,7 @@
</font> {
register uint32_t tcr;
<font color='#880000'>- asm volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font>
return (tcr & 0x04000000) != 0;
}
<font color='#997700'>@@ -171,11 +171,11 @@
</font> {
register uint32_t tcr;
<font color='#880000'>- asm volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font>
tcr &= ~ 0x04400000;
<font color='#880000'>- asm volatile ("mtspr 0x3da, %0" : "=r" ((tcr)) : "0" ((tcr))); /* TCR */
</font><font color='#000088'>+ __asm__ volatile ("mtspr 0x3da, %0" : "=r" ((tcr)) : "0" ((tcr))); /* TCR */
</font> }
void ClockOn(
<font color='#997700'>@@ -191,16 +191,16 @@
</font> Clock_driver_ticks = 0;
#ifndef ppc405 /* this is a ppc403 */
<font color='#880000'>- asm volatile ("mfdcr %0, 0xa0" : "=r" (iocr)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0xa0" : "=r" (iocr)); /* IOCR */
</font> if (bsp_timer_internal_clock) {
iocr &= ~4; /* timer clocked from system clock */
}
else {
iocr |= 4; /* select external timer clock */
}
<font color='#880000'>- asm volatile ("mtdcr 0xa0, %0" : "=r" (iocr) : "0" (iocr)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0xa0, %0" : "=r" (iocr) : "0" (iocr)); /* IOCR */
</font>
<font color='#880000'>- asm volatile ("mfspr %0, 0x11f" : "=r" ((pvr))); /* PVR */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x11f" : "=r" ((pvr))); /* PVR */
</font> if (((pvr & 0xffff0000) >> 16) != 0x0020)
return; /* Not a ppc403 */
<font color='#997700'>@@ -215,14 +215,14 @@
</font> auto_restart = true;
#else /* ppc405 */
<font color='#880000'>- asm volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0x0b2" : "=r" (iocr)); /*405GP CPC0_CR1 */
</font> if (bsp_timer_internal_clock) {
iocr &=~0x800000 ;/* timer clocked from system clock CETE*/
}
else {
iocr |= 0x800000; /* select external timer clock CETE*/
}
<font color='#880000'>- asm volatile ("mtdcr 0x0b2, %0" : "=r" (iocr) : "0" (iocr)); /* 405GP CPC0_CR1 */
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0x0b2, %0" : "=r" (iocr) : "0" (iocr)); /* 405GP CPC0_CR1 */
</font>
/*
* Enable auto restart
<font color='#997700'>@@ -238,7 +238,7 @@
</font> * Set PIT value
*/
<font color='#880000'>- asm volatile ("mtspr 0x3db, %0" : : "r" (pit_value)); /* PIT */
</font><font color='#000088'>+ __asm__ volatile ("mtspr 0x3db, %0" : : "r" (pit_value)); /* PIT */
</font>
/*
* Set timer to autoreload, bit TCR->ARE = 1 0x0400000
<font color='#997700'>@@ -246,10 +246,10 @@
</font> */
tick_time = get_itimer() + pit_value;
<font color='#880000'>- asm volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font><font color='#000088'>+ __asm__ volatile ("mfspr %0, 0x3da" : "=r" ((tcr))); /* TCR */
</font> tcr = (tcr & ~0x04400000) | (auto_restart ? 0x04400000 : 0x04000000);
#if 1
<font color='#880000'>- asm volatile ("mtspr 0x3da, %0" : "=r" ((tcr)) : "0" ((tcr))); /* TCR */
</font><font color='#000088'>+ __asm__ volatile ("mtspr 0x3da, %0" : "=r" ((tcr)) : "0" ((tcr))); /* TCR */
</font> #endif
}
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c:1.20 rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c:1.21
--- rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c:1.20 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -351,12 +351,12 @@
</font> * select RTS/CTS hardware handshake lines,
* select clock source
*/
<font color='#880000'>- asm volatile ("mfdcr %0, 0xa0" : "=r" (tmp)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0xa0" : "=r" (tmp)); /* IOCR */
</font>
tmp &= ~3;
tmp |= (bsp_serial_external_clock ? 2 : 0) | 1;
<font color='#880000'>- asm volatile ("mtdcr 0xa0, %0" : "=r" (tmp) : "0" (tmp)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0xa0, %0" : "=r" (tmp) : "0" (tmp)); /* IOCR */
</font>
/* clear any receive (error) status */
port->SPLS = (LSRDataReady | LSRFramingError | LSROverrunError |
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled:1.8 rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled:1.9
--- rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled:1.8 Sat Sep 6 12:36:55 2008
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -146,11 +146,11 @@
</font> extern uint32_t bsp_serial_rate;
/* Initialise the serial port */
<font color='#880000'>- asm volatile ("mfdcr %0, 0xa0" : "=r" (tmp)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0xa0" : "=r" (tmp)); /* IOCR */
</font> tmp &= ~3;
tmp |= (bsp_serial_external_clock ? 2 : 0) |
(bsp_serial_cts_rts ? 1 : 0);
<font color='#880000'>- asm volatile ("mtdcr 0xa0, %0" : "=r" (tmp) : "0" (tmp)); /* IOCR */
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0xa0, %0" : "=r" (tmp) : "0" (tmp)); /* IOCR */
</font> port->SPLS = (LSRDataReady | LSRFramingError | LSROverrunError |
LSRParityError | LSRBreakInterrupt);
tmp = bsp_serial_per_sec / bsp_get_serial_rate;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/console/console405.c:1.11 rtems/c/src/lib/libcpu/powerpc/ppc403/console/console405.c:1.12
--- rtems/c/src/lib/libcpu/powerpc/ppc403/console/console405.c:1.11 Sun Apr 25 11:10:36 2010
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/console/console405.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -367,14 +367,14 @@
</font> * Select clock source and set uart internal clock divisor
*/
<font color='#880000'>- asm volatile ("mfdcr %0, 0x0b1" : "=r" (tmp)); /* CPC_CR0 0x0b1 */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0x0b1" : "=r" (tmp)); /* CPC_CR0 0x0b1 */
</font>
/* UART0 bit 24 0x80, UART1 bit 25 0x40 */
tmp |= (bsp_serial_external_clock ? (USE_UART ? 0x40 : 0x80) : 0);
tmp |= (bsp_serial_external_clock ? 0: ((UART_INTERNAL_CLOCK_DIVISOR -1) << 1));
<font color='#880000'>- asm volatile ("mtdcr 0x0b1, %0" : "=r" (tmp) : "0" (tmp)); /* CPC_CR0 0x0b1*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0x0b1, %0" : "=r" (tmp) : "0" (tmp)); /* CPC_CR0 0x0b1*/
</font>
/* Disable port interrupts while changing hardware */
_ier = port->IER;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c:1.4 rtems/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c:1.5
--- rtems/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c:1.4 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -47,7 +47,7 @@
</font> RTEMS_INLINE_ROUTINE void
clr_exisr(uint32_t mask)
{
<font color='#880000'>- asm volatile ("mtdcr 0xC0,%0"::"r" (mask));/*EXISR*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0xC0,%0"::"r" (mask));/*EXISR*/
</font> }
/*
<font color='#997700'>@@ -58,7 +58,7 @@
</font> {
uint32_t val;
<font color='#880000'>- asm volatile ("mfdcr %0,0xC0":"=r" (val));/*EXISR*/
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0,0xC0":"=r" (val));/*EXISR*/
</font> return val;
}
<font color='#997700'>@@ -69,7 +69,7 @@
</font> get_exier(void)
{
uint32_t val;
<font color='#880000'>- asm volatile ("mfdcr %0,0xC2":"=r" (val));/*EXIER*/
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0,0xC2":"=r" (val));/*EXIER*/
</font> return val;
}
<font color='#997700'>@@ -79,7 +79,7 @@
</font> RTEMS_INLINE_ROUTINE void
set_exier(uint32_t val)
{
<font color='#880000'>- asm volatile ("mtdcr 0xC2,%0"::"r" (val));/*EXIER*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0xC2,%0"::"r" (val));/*EXIER*/
</font> }
#else /* not ppc405 */
<font color='#997700'>@@ -87,7 +87,7 @@
</font> RTEMS_INLINE_ROUTINE void
clr_exisr(uint32_t mask)
{
<font color='#880000'>- asm volatile ("mtdcr 0x40,%0"::"r" (mask));/*EXISR*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0x40,%0"::"r" (mask));/*EXISR*/
</font> }
/*
<font color='#997700'>@@ -98,7 +98,7 @@
</font> {
uint32_t val;
<font color='#880000'>- asm volatile ("mfdcr %0,0x40":"=r" (val));/*EXISR*/
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0,0x40":"=r" (val));/*EXISR*/
</font> return val;
}
<font color='#997700'>@@ -109,7 +109,7 @@
</font> get_exier(void)
{
uint32_t val;
<font color='#880000'>- asm volatile ("mfdcr %0,0x42":"=r" (val));/*EXIER*/
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0,0x42":"=r" (val));/*EXIER*/
</font> return val;
}
<font color='#997700'>@@ -119,7 +119,7 @@
</font> RTEMS_INLINE_ROUTINE void
set_exier(uint32_t val)
{
<font color='#880000'>- asm volatile ("mtdcr 0x42,%0"::"r" (val));/*EXIER*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0x42,%0"::"r" (val));/*EXIER*/
</font> }
#endif /* ppc405 */
/*
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c:1.10 rtems/c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c:1.11
--- rtems/c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c:1.10 Sun Apr 25 11:10:36 2010
+++ rtems/c/src/lib/libcpu/powerpc/ppc403/tty_drv/tty_drv.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -359,14 +359,14 @@
</font> * Select clock source and set uart internal clock divisor
*/
<font color='#880000'>- asm volatile ("mfdcr %0, 0x0b1" : "=r" (tmp)); /* CPC_CR0 0x0b1 */
</font><font color='#000088'>+ __asm__ volatile ("mfdcr %0, 0x0b1" : "=r" (tmp)); /* CPC_CR0 0x0b1 */
</font>
/* UART0 bit 24 0x80, UART1 bit 25 0x40 */
tmp |= (bsp_serial_external_clock ? (TTY0_USE_UART ? 0x40 : 0x80) : 0);
tmp |= (bsp_serial_external_clock ? 0: ((TTY0_UART_INTERNAL_CLOCK_DIVISOR -1) << 1));
<font color='#880000'>- asm volatile ("mtdcr 0x0b1, %0" : "=r" (tmp) : "0" (tmp)); /* CPC_CR0 0x0b1*/
</font><font color='#000088'>+ __asm__ volatile ("mtdcr 0x0b1, %0" : "=r" (tmp) : "0" (tmp)); /* CPC_CR0 0x0b1*/
</font>
/* Disable tty0port interrupts while changing hardware */
_ier = tty0port->IER;
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h:1.6 rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h:1.7
--- rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h:1.6 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -13,7 +13,7 @@
</font> #define _CPU_Data_Cache_Block_Flush( _address ) \
do { register void *__address = (_address); \
register uint32_t _zero = 0; \
<font color='#880000'>- asm volatile ( "dcbf %0,%1" : \
</font><font color='#000088'>+ __asm__ volatile ( "dcbf %0,%1" : \
</font> "=r" (_zero), "=r" (__address) : \
"0" (_zero), "1" (__address) \
); \
<font color='#997700'>@@ -29,7 +29,7 @@
</font> #define _CPU_Data_Cache_Block_Invalidate( _address ) \
do { register void *__address = (_address); \
register uint32_t _zero = 0; \
<font color='#880000'>- asm volatile ( "dcbi %0,%1" : \
</font><font color='#000088'>+ __asm__ volatile ( "dcbi %0,%1" : \
</font> "=r" (_zero), "=r" (__address) : \
"0" (_zero), "1" (__address) \
); \
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h:1.13 rtems/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h:1.14
--- rtems/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h:1.13 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -57,7 +57,7 @@
</font> {
uint8_t value;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "lbz %0, 0(%1)"
: "=r" (value)
: "b" (src)
<font color='#997700'>@@ -73,7 +73,7 @@
</font> {
uint16_t value;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "lhz %0, 0(%1)"
: "=r" (value)
: "b" (src)
<font color='#997700'>@@ -89,7 +89,7 @@
</font> {
uint32_t value;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "lwz %0, 0(%1)"
: "=r" (value)
: "b" (src)
<font color='#997700'>@@ -103,7 +103,7 @@
</font> */
static inline void ppc_write_byte(uint8_t value, volatile void *dest)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "stb %0, 0(%1)"
:
: "r" (value), "b" (dest)
<font color='#997700'>@@ -115,7 +115,7 @@
</font> */
static inline void ppc_write_half_word(uint16_t value, volatile void *dest)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "sth %0, 0(%1)"
:
: "r" (value), "b" (dest)
<font color='#997700'>@@ -127,7 +127,7 @@
</font> */
static inline void ppc_write_word(uint32_t value, volatile void *dest)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "stw %0, 0(%1)" :
: "r" (value), "b" (dest)
);
<font color='#997700'>@@ -138,7 +138,7 @@
</font> {
void *sp;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mr %0, 1"
: "=r" (sp)
);
<font color='#997700'>@@ -148,7 +148,7 @@
</font>
static inline void ppc_set_stack_pointer(void *sp)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mr 1, %0"
:
: "r" (sp)
<font color='#997700'>@@ -159,7 +159,7 @@
</font> {
void *lr;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mflr %0"
: "=r" (lr)
);
<font color='#997700'>@@ -169,7 +169,7 @@
</font>
static inline void ppc_set_link_register(void *lr)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mtlr %0"
:
: "r" (lr)
<font color='#997700'>@@ -180,7 +180,7 @@
</font> {
uint32_t msr;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfmsr %0"
: "=r" (msr)
);
<font color='#997700'>@@ -190,7 +190,7 @@
</font>
static inline void ppc_set_machine_state_register(uint32_t msr)
{
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mtmsr %0"
:
: "r" (msr)
<font color='#997700'>@@ -201,14 +201,14 @@
</font> {
RTEMS_COMPILER_MEMORY_BARRIER();
<font color='#880000'>- asm volatile ("sync");
</font><font color='#000088'>+ __asm__ volatile ("sync");
</font> }
static inline void ppc_synchronize_instructions(void)
{
RTEMS_COMPILER_MEMORY_BARRIER();
<font color='#880000'>- asm volatile ("isync");
</font><font color='#000088'>+ __asm__ volatile ("isync");
</font> }
/**
<font color='#997700'>@@ -224,7 +224,7 @@
</font>
RTEMS_COMPILER_MEMORY_BARRIER();
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "mfmsr %0;"
"ori %1, %0, 0x8000;"
"mtmsr %1"
<font color='#997700'>@@ -266,10 +266,10 @@
</font> * 2009/10/30 Th. D.
*/
#define CPU_Get_timebase_low( _value ) \
<font color='#880000'>- asm volatile( "mftb %0" : "=r" (_value) )
</font><font color='#000088'>+ __asm__ volatile( "mftb %0" : "=r" (_value) )
</font> #else
#define CPU_Get_timebase_low( _value ) \
<font color='#880000'>- asm volatile( "mfspr %0,268" : "=r" (_value) )
</font><font color='#000088'>+ __asm__ volatile( "mfspr %0,268" : "=r" (_value) )
</font> #endif
/* Must be provided for rtems_bsp_delay to work */
<font color='#997700'>@@ -300,11 +300,11 @@
</font>
#define PPC_Set_decrementer( _clicks ) \
do { \
<font color='#880000'>- asm volatile( "mtdec %0" : : "r" ((_clicks)) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtdec %0" : : "r" ((_clicks)) ); \
</font> } while (0)
#define PPC_Get_decrementer( _clicks ) \
<font color='#880000'>- asm volatile( "mfdec %0" : "=r" (_clicks) )
</font><font color='#000088'>+ __asm__ volatile( "mfdec %0" : "=r" (_clicks) )
</font>
/*
* Routines to access the time base register
<font color='#997700'>@@ -320,13 +320,13 @@
</font> do {
#if defined(mpx8xx) || defined(mpc860) || defined(mpc821)
/* See comment above (CPU_Get_timebase_low) */
<font color='#880000'>- asm volatile( "mftbu %0" : "=r" (tbr_high_old));
- asm volatile( "mftb %0" : "=r" (tbr_low));
- asm volatile( "mftbu %0" : "=r" (tbr_high));
</font><font color='#000088'>+ __asm__ volatile( "mftbu %0" : "=r" (tbr_high_old));
+ __asm__ volatile( "mftb %0" : "=r" (tbr_low));
+ __asm__ volatile( "mftbu %0" : "=r" (tbr_high));
</font> #else
<font color='#880000'>- asm volatile( "mfspr %0, 269" : "=r" (tbr_high_old));
- asm volatile( "mfspr %0, 268" : "=r" (tbr_low));
- asm volatile( "mfspr %0, 269" : "=r" (tbr_high));
</font><font color='#000088'>+ __asm__ volatile( "mfspr %0, 269" : "=r" (tbr_high_old));
+ __asm__ volatile( "mfspr %0, 268" : "=r" (tbr_low));
+ __asm__ volatile( "mfspr %0, 269" : "=r" (tbr_high));
</font> #endif
} while ( tbr_high_old != tbr_high );
<font color='#997700'>@@ -343,8 +343,8 @@
</font>
tbr_low = (uint32_t) tbr;
tbr_high = (uint32_t) (tbr >> 32);
<font color='#880000'>- asm volatile( "mtspr 284, %0" : : "r" (tbr_low));
- asm volatile( "mtspr 285, %0" : : "r" (tbr_high));
</font><font color='#000088'>+ __asm__ volatile( "mtspr 284, %0" : : "r" (tbr_low));
+ __asm__ volatile( "mtspr 285, %0" : : "r" (tbr_high));
</font>
}
<font color='#997700'>@@ -375,7 +375,7 @@
</font> #define PPC_SPECIAL_PURPOSE_REGISTER(spr) \
({ \
uint32_t val; \
<font color='#880000'>- asm volatile (\
</font><font color='#000088'>+ __asm__ volatile (\
</font> "mfspr %0, " PPC_STRINGOF(spr) \
: "=r" (val) \
); \
<font color='#997700'>@@ -388,7 +388,7 @@
</font> */
#define PPC_SET_SPECIAL_PURPOSE_REGISTER(spr, val) \
do { \
<font color='#880000'>- asm volatile (\
</font><font color='#000088'>+ __asm__ volatile (\
</font> "mtspr " PPC_STRINGOF(spr) ", %0" \
: \
: "r" (val) \
<font color='#997700'>@@ -462,7 +462,7 @@
</font> #define PPC_DEVICE_CONTROL_REGISTER(dcr) \
({ \
uint32_t val; \
<font color='#880000'>- asm volatile (\
</font><font color='#000088'>+ __asm__ volatile (\
</font> "mfdcr %0, " PPC_STRINGOF(dcr) \
: "=r" (val) \
); \
<font color='#997700'>@@ -477,7 +477,7 @@
</font> */
#define PPC_SET_DEVICE_CONTROL_REGISTER(dcr, val) \
do { \
<font color='#880000'>- asm volatile (\
</font><font color='#000088'>+ __asm__ volatile (\
</font> "mtdcr " PPC_STRINGOF(dcr) ", %0" \
: \
: "r" (val) \
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/shared/src/cache.c:1.12 rtems/c/src/lib/libcpu/powerpc/shared/src/cache.c:1.13
--- rtems/c/src/lib/libcpu/powerpc/shared/src/cache.c:1.12 Sun Nov 29 23:07:54 2009
+++ rtems/c/src/lib/libcpu/powerpc/shared/src/cache.c Fri Feb 11 03:46:53 2011
</font><font color='#997700'>@@ -33,7 +33,7 @@
</font> #define PPC_Get_HID0( _value ) \
do { \
_value = 0; /* to avoid warnings */ \
<font color='#880000'>- asm volatile( \
</font><font color='#000088'>+ __asm__ volatile( \
</font> "mfspr %0, 0x3f0;" /* get HID0 */ \
"isync" \
: "=r" (_value) \
<font color='#997700'>@@ -43,7 +43,7 @@
</font>
#define PPC_Set_HID0( _value ) \
do { \
<font color='#880000'>- asm volatile( \
</font><font color='#000088'>+ __asm__ volatile( \
</font> "isync;" \
"mtspr 0x3f0, %0;" /* load HID0 */ \
"isync" \
<font color='#997700'>@@ -269,14 +269,14 @@
</font> const void * _address )
{
register const void *__address = _address;
<font color='#880000'>- asm volatile ( "dcbi 0,%0" :: "r"(__address) : "memory" );
</font><font color='#000088'>+ __asm__ volatile ( "dcbi 0,%0" :: "r"(__address) : "memory" );
</font> }
void _CPU_cache_flush_1_data_line(
const void * _address )
{
register const void *__address = _address;
<font color='#880000'>- asm volatile ( "dcbf 0,%0" :: "r" (__address) : "memory" );
</font><font color='#000088'>+ __asm__ volatile ( "dcbf 0,%0" :: "r" (__address) : "memory" );
</font> }
<font color='#997700'>@@ -284,7 +284,7 @@
</font> const void * _address )
{
register const void *__address = _address;
<font color='#880000'>- asm volatile ( "icbi 0,%0" :: "r" (__address) : "memory");
</font><font color='#000088'>+ __asm__ volatile ( "icbi 0,%0" :: "r" (__address) : "memory");
</font> }
/* end of file */
</pre>
<p> </p>
<a name='cs18'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* mpc6xx/altivec/vec_sup.c, mpc6xx/mmu/bat.h:
Fix up comments having been broken in previous commit.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/ChangeLog.diff?r1=text&tr1=1.374&r2=text&tr2=1.375&diff_format=h">M</a></td><td width='1%'>1.375</td><td width='100%'>c/src/lib/libcpu/powerpc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.374 rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.375
--- rtems/c/src/lib/libcpu/powerpc/ChangeLog:1.374 Fri Feb 11 03:46:52 2011
+++ rtems/c/src/lib/libcpu/powerpc/ChangeLog Fri Feb 11 03:55:48 2011
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#000088'>+ * mpc6xx/altivec/vec_sup.c, mpc6xx/mmu/bat.h:
+ Fix up comments having been broken in previous commit.
+
+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
</font> * e500/mmu/mmu.c, mpc505/ictrl/ictrl.c, mpc505/timer/timer.c,
mpc5xx/ictrl/ictrl.c, mpc5xx/timer/timer.c,
mpc6xx/altivec/vec_sup.c, mpc6xx/clock/c_clock.c,
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.3 rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.4
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c:1.3 Fri Feb 11 03:46:53 2011
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup.c Fri Feb 11 03:55:48 2011
</font><font color='#997700'>@@ -141,7 +141,7 @@
</font> */
static void dummy(void) __attribute__((noinline));
<font color='#880000'>-/* add (empty) __asm__ statement to make sure this isn't optimized away */
</font><font color='#000088'>+/* add (empty) asm-statement to make sure this isn't optimized away */
</font> static void dummy(void) { __asm__ volatile(""); }
static unsigned probe_r1(void) __attribute__((noinline));
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.12 rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.13
--- rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h:1.12 Fri Feb 11 03:46:53 2011
+++ rtems/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h Fri Feb 11 03:55:48 2011
</font><font color='#997700'>@@ -65,7 +65,7 @@
</font> /* Same as getdbat but reads IBAT */
extern int getibat(int bat_index, unsigned long *pu, unsigned long *pl);
<font color='#880000'>-/* Do not use the __asm__ routines; they are obsolete; use setdbat() instead */
</font><font color='#000088'>+/* Do not use the asm-routines; they are obsolete; use setdbat() instead */
</font> extern void asm_setdbat0(unsigned int uperPart, unsigned int lowerPart);
extern void asm_setdbat1(unsigned int uperPart, unsigned int lowerPart);
extern void asm_setdbat2(unsigned int uperPart, unsigned int lowerPart);
</pre>
<p> </p>
<a name='cs19'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/ChangeLog.diff?r1=text&tr1=1.64&r2=text&tr2=1.65&diff_format=h">M</a></td><td width='1%'>1.65</td><td width='100%'>c/src/lib/libcpu/sh/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7032/delay/delay.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libcpu/sh/sh7032/delay/delay.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7045/sci/sci.c.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>c/src/lib/libcpu/sh/sh7045/sci/sci.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/ChangeLog:1.64 rtems/c/src/lib/libcpu/sh/ChangeLog:1.65
--- rtems/c/src/lib/libcpu/sh/ChangeLog:1.64 Wed Feb 2 09:01:01 2011
+++ rtems/c/src/lib/libcpu/sh/ChangeLog Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@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.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7032/delay/delay.c:1.7 rtems/c/src/lib/libcpu/sh/sh7032/delay/delay.c:1.8
--- rtems/c/src/lib/libcpu/sh/sh7032/delay/delay.c:1.7 Mon Nov 26 17:02:03 2007
+++ rtems/c/src/lib/libcpu/sh/sh7032/delay/delay.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -43,7 +43,7 @@
</font> register uint32_t clicks_per_usec = bsp_clicks_per_second / 1000000;
register uint32_t _delay = (microseconds) * (clicks_per_usec);
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "0: add #-4,%0\n\
nop\n\
cmp/pl %0\n\
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c:1.17 rtems/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c:1.18
--- rtems/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c:1.17 Fri Jul 30 13:51:48 2010
+++ rtems/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -49,7 +49,7 @@
</font> unsigned long *_old_stack_ptr;
#endif
<font color='#880000'>-register unsigned long *stack_ptr asm("r15");
</font><font color='#000088'>+register unsigned long *stack_ptr __asm__ ("r15");
</font>
/*
* sh_set_irq_priority
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.9 rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.10
--- rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c:1.9 Fri Apr 16 16:29:43 2004
+++ rtems/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -122,7 +122,7 @@
</font> * Dummy interrupt service procedure for
* interrupts being not allowed --> Trap 34
************************************************/
<font color='#880000'>-asm(" .section .text\n\
</font><font color='#000088'>+__asm__ (" .section .text\n\
</font> .global __dummy_isp\n\
__dummy_isp:\n\
mov.l r14,@-r15\n\
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7045/sci/sci.c:1.16 rtems/c/src/lib/libcpu/sh/sh7045/sci/sci.c:1.17
--- rtems/c/src/lib/libcpu/sh/sh7045/sci/sci.c:1.16 Thu Apr 15 03:39:26 2010
+++ rtems/c/src/lib/libcpu/sh/sh7045/sci/sci.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -379,7 +379,7 @@
</font> _sci_set_cflags( &sci_device[minor], sci_device[minor].cflags );
for (a=0; a < 10000L; a++) { /* Delay */
<font color='#880000'>- asm volatile ("nop");
</font><font color='#000088'>+ __asm__ volatile ("nop");
</font> }
write8((SCI_RE | SCI_TE), /* enable async. Tx and Rx */
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c:1.7 rtems/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c:1.8
--- rtems/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c:1.7 Thu Apr 15 03:39:26 2010
+++ rtems/c/src/lib/libcpu/sh/sh7045/sci/sci_termios.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -113,7 +113,7 @@
</font> SH_SCI_REG_DATA(brr, minor, SCI_BRR);
for (a=0; a < 10000L; a++) { /* Delay one bit */
<font color='#880000'>- asm volatile ("nop");
</font><font color='#000088'>+ __asm__ volatile ("nop");
</font> }
SH_SCI_REG_FLAG((SCI_RE | SCI_TE), minor, SCI_SCR);
<font color='#997700'>@@ -295,7 +295,7 @@
</font> sh_sci_set_attributes(minor, Console_Port_Tbl[minor].pDeviceParams);
for (a=0; a < 10000L; a++) { /* Delay */
<font color='#880000'>- asm volatile ("nop");
</font><font color='#000088'>+ __asm__ volatile ("nop");
</font> }
write8((SCI_RE | SCI_TE), /* enable async. Tx and Rx */
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c:1.19 rtems/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c:1.20
--- rtems/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c:1.19 Fri Jul 30 13:51:48 2010
+++ rtems/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -48,7 +48,7 @@
</font> unsigned long *_old_stack_ptr;
#endif
<font color='#880000'>-register unsigned long *stack_ptr asm("r15");
</font><font color='#000088'>+register unsigned long *stack_ptr __asm__ ("r15");
</font>
/*
* sh_set_irq_priority
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.10 rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.11
--- rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c:1.10 Fri Apr 16 16:29:43 2004
+++ rtems/c/src/lib/libcpu/sh/sh7045/score/ispsh7045.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -151,7 +151,7 @@
</font> * Dummy interrupt service procedure for
* interrupts being not allowed --> Trap 34
************************************************/
<font color='#880000'>-asm(" .section .text\n\
</font><font color='#000088'>+__asm__ (" .section .text\n\
</font> .global __dummy_isp\n\
__dummy_isp:\n\
mov.l r14,@-r15\n\
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.12 rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.13
--- rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c:1.12 Sun Nov 29 23:09:01 2009
+++ rtems/c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -842,7 +842,7 @@
</font> * Says gdb that program finished to get out from it.
*/
extern void ipl_finish(void);
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> " .global _ipl_finish\n"
"_ipl_finish:\n"
" mov.l __ipl_finish_value, r0\n"
<font color='#997700'>@@ -856,7 +856,7 @@
</font> );
extern int ipl_serial_input(int poll_count);
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> " .global _ipl_serial_input\n"
"_ipl_serial_input:\n"
" mov #1,r0\n"
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c:1.15 rtems/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c:1.16
--- rtems/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c:1.15 Fri Jul 30 13:51:48 2010
+++ rtems/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -48,7 +48,7 @@
</font> unsigned long *_old_stack_ptr;
#endif
<font color='#880000'>-register unsigned long *stack_ptr asm("r15");
</font><font color='#000088'>+register unsigned long *stack_ptr __asm__ ("r15");
</font>
/*
* This routine provides the RTEMS interrupt management.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.10 rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.11
--- rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c:1.10 Tue Sep 30 11:23:46 2008
+++ rtems/c/src/lib/libcpu/sh/sh7750/score/ispsh7750.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -309,7 +309,7 @@
</font> * Dummy interrupt service procedure for
* interrupts being not allowed --> Trap 2
************************************************/
<font color='#880000'>-asm(" .section .text\n\
</font><font color='#000088'>+__asm__ (" .section .text\n\
</font> .global __dummy_isp\n\
__dummy_isp:\n\
mov.l r14,@-r15\n\
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c:1.4 rtems/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c:1.5
--- rtems/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c:1.4 Fri Jul 30 13:51:49 2010
+++ rtems/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> unsigned long *_old_stack_ptr;
#endif
<font color='#880000'>-register unsigned long *stack_ptr asm("r15");
</font><font color='#000088'>+register unsigned long *stack_ptr __asm__ ("r15");
</font>
/*
* This routine provides the RTEMS interrupt management.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.3 rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.4
--- rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c:1.3 Tue Sep 30 11:23:46 2008
+++ rtems/c/src/lib/libcpu/sh/shgdb/score/ispshgdb.c Fri Feb 11 03:57:25 2011
</font><font color='#997700'>@@ -137,7 +137,7 @@
</font> * Dummy interrupt service procedure for
* interrupts being not allowed --> Trap 34
************************************************/
<font color='#880000'>-asm(" .section .text\n\
</font><font color='#000088'>+__asm__ (" .section .text\n\
</font> .global __dummy_isp\n\
__dummy_isp:\n\
mov.l r14,@-r15\n\
</pre>
<p> </p>
<a name='cs20'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/cache/cache.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sparc64/ChangeLog.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>c/src/lib/libcpu/sparc64/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sparc64/shared/cache/cache.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libcpu/sparc64/shared/cache/cache.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sparc64/ChangeLog:1.5 rtems/c/src/lib/libcpu/sparc64/ChangeLog:1.6
--- rtems/c/src/lib/libcpu/sparc64/ChangeLog:1.5 Wed Feb 2 09:01:04 2011
+++ rtems/c/src/lib/libcpu/sparc64/ChangeLog Fri Feb 11 03:58:12 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * shared/cache/cache.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sparc64/shared/cache/cache.c:1.1 rtems/c/src/lib/libcpu/sparc64/shared/cache/cache.c:1.2
--- rtems/c/src/lib/libcpu/sparc64/shared/cache/cache.c:1.1 Thu Jun 17 11:16:25 2010
+++ rtems/c/src/lib/libcpu/sparc64/shared/cache/cache.c Fri Feb 11 03:58:12 2011
</font><font color='#997700'>@@ -12,7 +12,7 @@
</font>
void _CPU_cache_invalidate_entire_instruction ( void )
{
<font color='#880000'>- asm volatile ("flush");
</font><font color='#000088'>+ __asm__ volatile ("flush");
</font> }
/* XXX these need to be addressed */
</pre>
<p> </p>
<a name='cs21'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cache/cache.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sparc/ChangeLog.diff?r1=text&tr1=1.54&r2=text&tr2=1.55&diff_format=h">M</a></td><td width='1%'>1.55</td><td width='100%'>c/src/lib/libcpu/sparc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libcpu/sparc/cache/cache.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libcpu/sparc/cache/cache.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sparc/ChangeLog:1.54 rtems/c/src/lib/libcpu/sparc/ChangeLog:1.55
--- rtems/c/src/lib/libcpu/sparc/ChangeLog:1.54 Wed Feb 2 09:01:03 2011
+++ rtems/c/src/lib/libcpu/sparc/ChangeLog Fri Feb 11 03:58:54 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cache/cache.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libcpu/sparc/cache/cache.c:1.2 rtems/c/src/lib/libcpu/sparc/cache/cache.c:1.3
--- rtems/c/src/lib/libcpu/sparc/cache/cache.c:1.2 Mon Nov 27 11:02:39 2000
+++ rtems/c/src/lib/libcpu/sparc/cache/cache.c Fri Feb 11 03:58:54 2011
</font><font color='#997700'>@@ -12,7 +12,7 @@
</font>
void _CPU_cache_invalidate_entire_instruction ( void )
{
<font color='#880000'>- asm volatile ("flush");
</font><font color='#000088'>+ __asm__ volatile ("flush");
</font> }
/* XXX these need to be addressed */
</pre>
<p> </p>
<a name='cs22'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/tm27.h, startup/spurious.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/erc32/ChangeLog.diff?r1=text&tr1=1.160&r2=text&tr2=1.161&diff_format=h">M</a></td><td width='1%'>1.161</td><td width='100%'>c/src/lib/libbsp/sparc/erc32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/erc32/include/tm27.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>c/src/lib/libbsp/sparc/erc32/include/tm27.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/erc32/startup/spurious.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>c/src/lib/libbsp/sparc/erc32/startup/spurious.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/erc32/ChangeLog:1.160 rtems/c/src/lib/libbsp/sparc/erc32/ChangeLog:1.161
--- rtems/c/src/lib/libbsp/sparc/erc32/ChangeLog:1.160 Wed Feb 9 00:33:58 2011
+++ rtems/c/src/lib/libbsp/sparc/erc32/ChangeLog Fri Feb 11 04:06:48 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * include/tm27.h, startup/spurious.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/erc32/include/tm27.h:1.2 rtems/c/src/lib/libbsp/sparc/erc32/include/tm27.h:1.3
--- rtems/c/src/lib/libbsp/sparc/erc32/include/tm27.h:1.2 Thu Apr 22 23:47:38 2004
+++ rtems/c/src/lib/libbsp/sparc/erc32/include/tm27.h Fri Feb 11 04:06:48 2011
</font><font color='#997700'>@@ -39,7 +39,7 @@
</font> set_vector( (handler), TEST_VECTOR, 1 );
#define Cause_tm27_intr() \
<font color='#880000'>- asm volatile( "ta 0x10; nop " );
</font><font color='#000088'>+ __asm__ volatile( "ta 0x10; nop " );
</font>
#define Clear_tm27_intr() /* empty */
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/erc32/startup/spurious.c:1.11 rtems/c/src/lib/libbsp/sparc/erc32/startup/spurious.c:1.12
--- rtems/c/src/lib/libbsp/sparc/erc32/startup/spurious.c:1.11 Sun Nov 29 09:33:26 2009
+++ rtems/c/src/lib/libbsp/sparc/erc32/startup/spurious.c Fri Feb 11 04:06:48 2011
</font><font color='#997700'>@@ -128,7 +128,7 @@
</font> * What else can we do but stop ...
*/
<font color='#880000'>- asm volatile( "mov 1, %g1; ta 0x0" );
</font><font color='#000088'>+ __asm__ volatile( "mov 1, %g1; ta 0x0" );
</font> }
/*
</pre>
<p> </p>
<a name='cs23'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cchip/cchip.c, include/tm27.h, startup/spurious.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/ChangeLog.diff?r1=text&tr1=1.78&r2=text&tr2=1.79&diff_format=h">M</a></td><td width='1%'>1.79</td><td width='100%'>c/src/lib/libbsp/sparc/leon2/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/cchip/cchip.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libbsp/sparc/leon2/cchip/cchip.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/include/tm27.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/sparc/leon2/include/tm27.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/startup/spurious.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>c/src/lib/libbsp/sparc/leon2/startup/spurious.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon2/ChangeLog:1.78 rtems/c/src/lib/libbsp/sparc/leon2/ChangeLog:1.79
--- rtems/c/src/lib/libbsp/sparc/leon2/ChangeLog:1.78 Wed Feb 9 00:33:58 2011
+++ rtems/c/src/lib/libbsp/sparc/leon2/ChangeLog Fri Feb 11 04:06:49 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * cchip/cchip.c, include/tm27.h, startup/spurious.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon2/cchip/cchip.c:1.4 rtems/c/src/lib/libbsp/sparc/leon2/cchip/cchip.c:1.5
--- rtems/c/src/lib/libbsp/sparc/leon2/cchip/cchip.c:1.4 Sun Nov 29 09:33:26 2009
+++ rtems/c/src/lib/libbsp/sparc/leon2/cchip/cchip.c Fri Feb 11 04:06:49 2011
</font><font color='#997700'>@@ -38,7 +38,7 @@
</font> #define READ_REG(address) _READ_REG((unsigned int)address)
static __inline__ unsigned int _READ_REG(unsigned int addr) {
unsigned int tmp;
<font color='#880000'>- asm("lda [%1]1, %0 "
</font><font color='#000088'>+ __asm__ ("lda [%1]1, %0 "
</font> : "=r"(tmp)
: "r"(addr)
);
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon2/include/tm27.h:1.1 rtems/c/src/lib/libbsp/sparc/leon2/include/tm27.h:1.2
--- rtems/c/src/lib/libbsp/sparc/leon2/include/tm27.h:1.1 Mon Jan 9 04:36:06 2006
+++ rtems/c/src/lib/libbsp/sparc/leon2/include/tm27.h Fri Feb 11 04:06:49 2011
</font><font color='#997700'>@@ -39,7 +39,7 @@
</font> set_vector( (handler), TEST_VECTOR, 1 );
#define Cause_tm27_intr() \
<font color='#880000'>- asm volatile( "ta 0x10; nop " );
</font><font color='#000088'>+ __asm__ volatile( "ta 0x10; nop " );
</font>
#define Clear_tm27_intr() /* empty */
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon2/startup/spurious.c:1.6 rtems/c/src/lib/libbsp/sparc/leon2/startup/spurious.c:1.7
--- rtems/c/src/lib/libbsp/sparc/leon2/startup/spurious.c:1.6 Sun Nov 29 09:33:26 2009
+++ rtems/c/src/lib/libbsp/sparc/leon2/startup/spurious.c Fri Feb 11 04:06:49 2011
</font><font color='#997700'>@@ -109,7 +109,7 @@
</font> * What else can we do but stop ...
*/
<font color='#880000'>- asm volatile( "mov 1, %g1; ta 0x0" );
</font><font color='#000088'>+ __asm__ volatile( "mov 1, %g1; ta 0x0" );
</font> }
/*
</pre>
<p> </p>
<a name='cs24'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* amba/amba.c, include/tm27.h, shmsupp/lock.c, startup/bspstart.c,
startup/spurious.c:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/ChangeLog.diff?r1=text&tr1=1.100&r2=text&tr2=1.101&diff_format=h">M</a></td><td width='1%'>1.101</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/amba/amba.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/amba/amba.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/include/tm27.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/include/tm27.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&diff_format=h">M</a></td><td width='1%'>1.19</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/startup/bspstart.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/startup/spurious.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/startup/spurious.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/ChangeLog:1.100 rtems/c/src/lib/libbsp/sparc/leon3/ChangeLog:1.101
--- rtems/c/src/lib/libbsp/sparc/leon3/ChangeLog:1.100 Wed Feb 9 00:33:58 2011
+++ rtems/c/src/lib/libbsp/sparc/leon3/ChangeLog Fri Feb 11 04:06:51 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * amba/amba.c, include/tm27.h, shmsupp/lock.c, startup/bspstart.c,
+ startup/spurious.c:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/amba/amba.c:1.12 rtems/c/src/lib/libbsp/sparc/leon3/amba/amba.c:1.13
--- rtems/c/src/lib/libbsp/sparc/leon3/amba/amba.c:1.12 Mon May 24 10:05:19 2010
+++ rtems/c/src/lib/libbsp/sparc/leon3/amba/amba.c Fri Feb 11 04:06:51 2011
</font><font color='#997700'>@@ -35,7 +35,7 @@
</font>
unsigned int getasr17(void);
<font color='#880000'>-asm(" .text \n"
</font><font color='#000088'>+__asm__ (" .text \n"
</font> "getasr17: \n"
"retl \n"
"mov %asr17, %o0\n"
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/include/tm27.h:1.1 rtems/c/src/lib/libbsp/sparc/leon3/include/tm27.h:1.2
--- rtems/c/src/lib/libbsp/sparc/leon3/include/tm27.h:1.1 Mon Jan 9 04:41:21 2006
+++ rtems/c/src/lib/libbsp/sparc/leon3/include/tm27.h Fri Feb 11 04:06:51 2011
</font><font color='#997700'>@@ -39,7 +39,7 @@
</font> set_vector( (handler), TEST_VECTOR, 1 );
#define Cause_tm27_intr() \
<font color='#880000'>- asm volatile( "ta 0x10; nop " );
</font><font color='#000088'>+ __asm__ volatile( "ta 0x10; nop " );
</font>
#define Clear_tm27_intr() /* empty */
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c:1.4 rtems/c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c:1.5
--- rtems/c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c:1.4 Sun Nov 29 09:33:27 2009
+++ rtems/c/src/lib/libbsp/sparc/leon3/shmsupp/lock.c Fri Feb 11 04:06:52 2011
</font><font color='#997700'>@@ -41,7 +41,7 @@
</font> * a deadlock condition.
*/
<font color='#880000'>-asm(
</font><font color='#000088'>+__asm__ (
</font> ".text\n"
".align 4\n"
"LEON3_Atomic_Swap:\n"
<font color='#997700'>@@ -65,7 +65,7 @@
</font> Shm_isrstat = isr_level;
while ( lock_value ) {
lock_value = LEON3_Atomic_Swap(lock_value, lockptr);
<font color='#880000'>-/* asm volatile( "" */
</font><font color='#000088'>+/* __asm__ volatile( "" */
</font> /* : "=r" (lockptr), "=r" (lock_value) */
/* : "0" (lockptr), "1" (lock_value) */
/* ); */
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c:1.18 rtems/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c:1.19
--- rtems/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c:1.18 Mon May 24 10:05:19 2010
+++ rtems/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c Fri Feb 11 04:06:52 2011
</font><font color='#997700'>@@ -41,7 +41,7 @@
</font> static inline int set_snooping(void)
{
int tmp;
<font color='#880000'>- asm(" lda [%1] 2, %0 "
</font><font color='#000088'>+ __asm__ (" lda [%1] 2, %0 "
</font> : "=r"(tmp)
: "r"(0xC)
);
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/startup/spurious.c:1.7 rtems/c/src/lib/libbsp/sparc/leon3/startup/spurious.c:1.8
--- rtems/c/src/lib/libbsp/sparc/leon3/startup/spurious.c:1.7 Sun Nov 29 09:33:27 2009
+++ rtems/c/src/lib/libbsp/sparc/leon3/startup/spurious.c Fri Feb 11 04:06:52 2011
</font><font color='#997700'>@@ -120,7 +120,7 @@
</font> * What else can we do but stop ...
*/
<font color='#880000'>- asm volatile( "mov 1, %g1; ta 0x0" );
</font><font color='#000088'>+ __asm__ volatile( "mov 1, %g1; ta 0x0" );
</font> }
/*
</pre>
<p> </p>
<a name='cs25'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/bsp.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc64/niagara/ChangeLog.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libbsp/sparc64/niagara/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc64/niagara/include/bsp.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/sparc64/niagara/include/bsp.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc64/usiii/ChangeLog.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>c/src/lib/libbsp/sparc64/usiii/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc64/usiii/include/bsp.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/sparc64/usiii/include/bsp.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc64/niagara/ChangeLog:1.4 rtems/c/src/lib/libbsp/sparc64/niagara/ChangeLog:1.5
--- rtems/c/src/lib/libbsp/sparc64/niagara/ChangeLog:1.4 Wed Feb 2 09:00:47 2011
+++ rtems/c/src/lib/libbsp/sparc64/niagara/ChangeLog Fri Feb 11 04:08:45 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc64/niagara/include/bsp.h:1.1 rtems/c/src/lib/libbsp/sparc64/niagara/include/bsp.h:1.2
--- rtems/c/src/lib/libbsp/sparc64/niagara/include/bsp.h:1.1 Thu Jun 17 11:20:34 2010
+++ rtems/c/src/lib/libbsp/sparc64/niagara/include/bsp.h Fri Feb 11 04:08:45 2011
</font><font color='#997700'>@@ -53,7 +53,7 @@
</font> #define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp = 0; /* initialized to avoid warning */ \
<font color='#880000'>- asm volatile( "0: \
</font><font color='#000088'>+ __asm__ volatile( "0: \
</font> remo 3,31,%0 ; \
cmpo 0,%0 ; \
subo 1,%1,%1 ; \
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc64/usiii/ChangeLog:1.4 rtems/c/src/lib/libbsp/sparc64/usiii/ChangeLog:1.5
--- rtems/c/src/lib/libbsp/sparc64/usiii/ChangeLog:1.4 Wed Feb 2 09:00:48 2011
+++ rtems/c/src/lib/libbsp/sparc64/usiii/ChangeLog Fri Feb 11 04:08:47 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * include/bsp.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc64/usiii/include/bsp.h:1.1 rtems/c/src/lib/libbsp/sparc64/usiii/include/bsp.h:1.2
--- rtems/c/src/lib/libbsp/sparc64/usiii/include/bsp.h:1.1 Thu Jun 17 11:20:39 2010
+++ rtems/c/src/lib/libbsp/sparc64/usiii/include/bsp.h Fri Feb 11 04:08:47 2011
</font><font color='#997700'>@@ -55,7 +55,7 @@
</font> #define rtems_bsp_delay( microseconds ) \
{ register uint32_t _delay=(microseconds); \
register uint32_t _tmp = 0; /* initialized to avoid warning */ \
<font color='#880000'>- asm volatile( "0: \
</font><font color='#000088'>+ __asm__ volatile( "0: \
</font> remo 3,31,%0 ; \
cmpo 0,%0 ; \
subo 1,%1,%1 ; \
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>