<!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>2010-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* stringto01/init.c: Redefine LONG_LONG_MAX and LONG_LONG_MIN
for c99.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.253&r2=text&tr2=1.254&diff_format=h">M</a></td><td width='1%'>1.254</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/stringto01/init.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%'>testsuites/libtests/stringto01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.253 rtems/testsuites/libtests/ChangeLog:1.254
--- rtems/testsuites/libtests/ChangeLog:1.253 Wed Feb 2 12:52:49 2011
+++ rtems/testsuites/libtests/ChangeLog Fri Feb 11 02:21:04 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * stringto01/init.c: Redefine LONG_LONG_MAX and LONG_LONG_MIN
+ for c99.
+
</font> 2011-02-02 Joel Sherrill <joel.sherrilL@OARcorp.com>
* cpuuse/tswitch.c: Shrink memory requirements.
<font color='#006600'>diff -u rtems/testsuites/libtests/stringto01/init.c:1.3 rtems/testsuites/libtests/stringto01/init.c:1.4
--- rtems/testsuites/libtests/stringto01/init.c:1.3 Mon Jul 19 08:10:48 2010
+++ rtems/testsuites/libtests/stringto01/init.c Fri Feb 11 02:21:04 2011
</font><font color='#997700'>@@ -19,6 +19,15 @@
</font> #define __STRING(x) #x /* stringify without expanding x */
#define __XSTRING(x) __STRING(x) /* expand x, then stringify */
<font color='#000088'>+/* c99 has LLONG_MAX instead of LONG_LONG_MAX */
+#ifndef LONG_LONG_MAX
+#define LONG_LONG_MAX LLONG_MAX
+#endif
+/* c99 has LLONG_MIN instead of LONG_LONG_MIN */
+#ifndef LONG_LONG_MIN
+#define LONG_LONG_MIN LLONG_MIN
+#endif
+
</font> /* Test pointer conversions */
#define TEST_STRING_TO_TYPE void *
#define TEST_STRING_TO_NAME test_rtems_string_to_pointer
</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, rtems/score/sparc.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/sparc/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%'>cpukit/score/cpu/sparc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc/rtems/score/cpu.h.diff?r1=text&tr1=1.38&r2=text&tr2=1.39&diff_format=h">M</a></td><td width='1%'>1.39</td><td width='100%'>cpukit/score/cpu/sparc/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc/rtems/score/sparc.h.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>cpukit/score/cpu/sparc/rtems/score/sparc.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc/ChangeLog:1.100 rtems/cpukit/score/cpu/sparc/ChangeLog:1.101
--- rtems/cpukit/score/cpu/sparc/ChangeLog:1.100 Tue Nov 16 11:41:56 2010
+++ rtems/cpukit/score/cpu/sparc/ChangeLog Fri Feb 11 02:52:39 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/sparc.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove unused variable reported by clang.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc/rtems/score/cpu.h:1.38 rtems/cpukit/score/cpu/sparc/rtems/score/cpu.h:1.39
--- rtems/cpukit/score/cpu/sparc/rtems/score/cpu.h:1.38 Thu Oct 21 17:17:37 2010
+++ rtems/cpukit/score/cpu/sparc/rtems/score/cpu.h Fri Feb 11 02:52:39 2011
</font><font color='#997700'>@@ -770,7 +770,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'>@@ -822,7 +822,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/sparc/rtems/score/sparc.h:1.14 rtems/cpukit/score/cpu/sparc/rtems/score/sparc.h:1.15
--- rtems/cpukit/score/cpu/sparc/rtems/score/sparc.h:1.14 Wed Dec 2 03:46:16 2009
+++ rtems/cpukit/score/cpu/sparc/rtems/score/sparc.h Fri Feb 11 02:52:39 2011
</font><font color='#997700'>@@ -136,7 +136,7 @@
</font>
#define nop() \
do { \
<font color='#880000'>- asm volatile ( "nop" ); \
</font><font color='#000088'>+ __asm__ volatile ( "nop" ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -146,12 +146,12 @@
</font> #define sparc_get_psr( _psr ) \
do { \
(_psr) = 0; \
<font color='#880000'>- asm volatile( "rd %%psr, %0" : "=r" (_psr) : "0" (_psr) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%psr, %0" : "=r" (_psr) : "0" (_psr) ); \
</font> } while ( 0 )
#define sparc_set_psr( _psr ) \
do { \
<font color='#880000'>- asm volatile ( "mov %0, %%psr " : "=r" ((_psr)) : "0" ((_psr)) ); \
</font><font color='#000088'>+ __asm__ volatile ( "mov %0, %%psr " : "=r" ((_psr)) : "0" ((_psr)) ); \
</font> nop(); \
nop(); \
nop(); \
<font color='#997700'>@@ -164,12 +164,12 @@
</font> #define sparc_get_tbr( _tbr ) \
do { \
(_tbr) = 0; /* to avoid unitialized warnings */ \
<font color='#880000'>- asm volatile( "rd %%tbr, %0" : "=r" (_tbr) : "0" (_tbr) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%tbr, %0" : "=r" (_tbr) : "0" (_tbr) ); \
</font> } while ( 0 )
#define sparc_set_tbr( _tbr ) \
do { \
<font color='#880000'>- asm volatile( "wr %0, 0, %%tbr" : "=r" (_tbr) : "0" (_tbr) ); \
</font><font color='#000088'>+ __asm__ volatile( "wr %0, 0, %%tbr" : "=r" (_tbr) : "0" (_tbr) ); \
</font> } while ( 0 )
/*
<font color='#997700'>@@ -178,12 +178,12 @@
</font>
#define sparc_get_wim( _wim ) \
do { \
<font color='#880000'>- asm volatile( "rd %%wim, %0" : "=r" (_wim) : "0" (_wim) ); \
</font><font color='#000088'>+ __asm__ volatile( "rd %%wim, %0" : "=r" (_wim) : "0" (_wim) ); \
</font> } while ( 0 )
#define sparc_set_wim( _wim ) \
do { \
<font color='#880000'>- asm volatile( "wr %0, %%wim" : "=r" (_wim) : "0" (_wim) ); \
</font><font color='#000088'>+ __asm__ volatile( "wr %0, %%wim" : "=r" (_wim) : "0" (_wim) ); \
</font> nop(); \
nop(); \
nop(); \
<font color='#997700'>@@ -195,12 +195,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 )
/*
</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/score/mips.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/mips/ChangeLog.diff?r1=text&tr1=1.145&r2=text&tr2=1.146&diff_format=h">M</a></td><td width='1%'>1.146</td><td width='100%'>cpukit/score/cpu/mips/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/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/mips/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/rtems/score/mips.h.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/score/cpu/mips/rtems/score/mips.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/ChangeLog:1.145 rtems/cpukit/score/cpu/mips/ChangeLog:1.146
--- rtems/cpukit/score/cpu/mips/ChangeLog:1.145 Tue Jan 4 09:33:31 2011
+++ rtems/cpukit/score/cpu/mips/ChangeLog Fri Feb 11 02:54: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/score/mips.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: _Thread_Executing was not used.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/cpu.c:1.35 rtems/cpukit/score/cpu/mips/cpu.c:1.36
--- rtems/cpukit/score/cpu/mips/cpu.c:1.35 Sun Apr 25 16:37:46 2010
+++ rtems/cpukit/score/cpu/mips/cpu.c Fri Feb 11 02:54:08 2011
</font><font color='#997700'>@@ -315,7 +315,7 @@
</font> {
#if (__mips == 3) || (__mips == 32)
for( ; ; )
<font color='#880000'>- asm volatile("wait"); /* use wait to enter low power mode */
</font><font color='#000088'>+ __asm__ volatile("wait"); /* use wait to enter low power mode */
</font> #elif __mips == 1
for( ; ; )
;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/rtems/score/mips.h:1.23 rtems/cpukit/score/cpu/mips/rtems/score/mips.h:1.24
--- rtems/cpukit/score/cpu/mips/rtems/score/mips.h:1.23 Thu Dec 3 23:24:40 2009
+++ rtems/cpukit/score/cpu/mips/rtems/score/mips.h Fri Feb 11 02:54:08 2011
</font><font color='#997700'>@@ -116,13 +116,13 @@
</font>
#define mips_get_sr( _x ) \
do { \
<font color='#880000'>- asm volatile( "mfc0 %0, $12; nop" : "=r" (_x) : ); \
</font><font color='#000088'>+ __asm__ volatile( "mfc0 %0, $12; nop" : "=r" (_x) : ); \
</font> } while (0)
#define mips_set_sr( _x ) \
do { \
register unsigned int __x = (_x); \
<font color='#880000'>- asm volatile( "mtc0 %0, $12; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtc0 %0, $12; nop" : : "r" (__x) ); \
</font> } while (0)
<font color='#997700'>@@ -132,14 +132,14 @@
</font>
#define mips_get_cause( _x ) \
do { \
<font color='#880000'>- asm volatile( "mfc0 %0, $13; nop" : "=r" (_x) : ); \
</font><font color='#000088'>+ __asm__ volatile( "mfc0 %0, $13; nop" : "=r" (_x) : ); \
</font> } while (0)
#define mips_set_cause( _x ) \
do { \
register unsigned int __x = (_x); \
<font color='#880000'>- asm volatile( "mtc0 %0, $13; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtc0 %0, $13; nop" : : "r" (__x) ); \
</font> } while (0)
<font color='#997700'>@@ -151,14 +151,14 @@
</font>
#define mips_get_dcic( _x ) \
do { \
<font color='#880000'>- asm volatile( "mfc0 %0, $7; nop" : "=r" (_x) : ); \
</font><font color='#000088'>+ __asm__ volatile( "mfc0 %0, $7; nop" : "=r" (_x) : ); \
</font> } while (0)
#define mips_set_dcic( _x ) \
do { \
register unsigned int __x = (_x); \
<font color='#880000'>- asm volatile( "mtc0 %0, $7; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtc0 %0, $7; nop" : : "r" (__x) ); \
</font> } while (0)
<font color='#997700'>@@ -171,8 +171,8 @@
</font>
#define mips_get_bpcrm( _x, _y ) \
do { \
<font color='#880000'>- asm volatile( "mfc0 %0, $3; nop" : "=r" (_x) : ); \
- asm volatile( "mfc0 %0, $11; nop" : "=r" (_y) : ); \
</font><font color='#000088'>+ __asm__ volatile( "mfc0 %0, $3; nop" : "=r" (_x) : ); \
+ __asm__ volatile( "mfc0 %0, $11; nop" : "=r" (_y) : ); \
</font> } while (0)
<font color='#997700'>@@ -180,8 +180,8 @@
</font> do { \
register unsigned int __x = (_x); \
register unsigned int __y = (_y); \
<font color='#880000'>- asm volatile( "mtc0 %0, $11; nop" : : "r" (__y) ); \
- asm volatile( "mtc0 %0, $3; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtc0 %0, $11; nop" : : "r" (__y) ); \
+ __asm__ volatile( "mtc0 %0, $3; nop" : : "r" (__x) ); \
</font> } while (0)
<font color='#997700'>@@ -196,8 +196,8 @@
</font>
#define mips_get_bdarm( _x, _y ) \
do { \
<font color='#880000'>- asm volatile( "mfc0 %0, $5; nop" : "=r" (_x) : ); \
- asm volatile( "mfc0 %0, $9; nop" : "=r" (_y) : ); \
</font><font color='#000088'>+ __asm__ volatile( "mfc0 %0, $5; nop" : "=r" (_x) : ); \
+ __asm__ volatile( "mfc0 %0, $9; nop" : "=r" (_y) : ); \
</font> } while (0)
<font color='#997700'>@@ -205,8 +205,8 @@
</font> do { \
register unsigned int __x = (_x); \
register unsigned int __y = (_y); \
<font color='#880000'>- asm volatile( "mtc0 %0, $9; nop" : : "r" (__y) ); \
- asm volatile( "mtc0 %0, $5; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "mtc0 %0, $9; nop" : : "r" (__y) ); \
+ __asm__ volatile( "mtc0 %0, $5; nop" : : "r" (__x) ); \
</font> } while (0)
<font color='#997700'>@@ -223,14 +223,14 @@
</font>
#define mips_get_fcr31( _x ) \
do { \
<font color='#880000'>- asm volatile( "cfc1 %0, $31; nop" : "=r" (_x) : ); \
</font><font color='#000088'>+ __asm__ volatile( "cfc1 %0, $31; nop" : "=r" (_x) : ); \
</font> } while(0)
#define mips_set_fcr31( _x ) \
do { \
register unsigned int __x = (_x); \
<font color='#880000'>- asm volatile( "ctc1 %0, $31; nop" : : "r" (__x) ); \
</font><font color='#000088'>+ __asm__ volatile( "ctc1 %0, $31; nop" : : "r" (__x) ); \
</font> } while(0)
#else
</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>
* context.c, cpu.c, rtems/score/cpu.h, rtems/score/sh.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/sh/ChangeLog.diff?r1=text&tr1=1.98&r2=text&tr2=1.99&diff_format=h">M</a></td><td width='1%'>1.99</td><td width='100%'>cpukit/score/cpu/sh/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/context.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/sh/context.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/cpu.c.diff?r1=text&tr1=1.21&r2=text&tr2=1.22&diff_format=h">M</a></td><td width='1%'>1.22</td><td width='100%'>cpukit/score/cpu/sh/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/rtems/score/cpu.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/sh/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/rtems/score/sh.h.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%'>cpukit/score/cpu/sh/rtems/score/sh.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/ChangeLog:1.98 rtems/cpukit/score/cpu/sh/ChangeLog:1.99
--- rtems/cpukit/score/cpu/sh/ChangeLog:1.98 Thu Oct 21 17:16:57 2010
+++ rtems/cpukit/score/cpu/sh/ChangeLog Fri Feb 11 02:56:10 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * context.c, cpu.c, rtems/score/cpu.h, rtems/score/sh.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/sh/context.c:1.2 rtems/cpukit/score/cpu/sh/context.c:1.3
--- rtems/cpukit/score/cpu/sh/context.c:1.2 Sat Mar 27 10:02:35 2010
+++ rtems/cpukit/score/cpu/sh/context.c Fri Feb 11 02:56:10 2011
</font><font color='#997700'>@@ -201,7 +201,7 @@
</font> :: "i" (sizeof(Context_Control))
);
<font color='#880000'>- asm volatile("\n\
</font><font color='#000088'>+ __asm__ volatile("\n\
</font> .global __CPU_Context_restore\n\
__CPU_Context_restore:\n\
mov.l @r4+,r15\n\
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/cpu.c:1.21 rtems/cpukit/score/cpu/sh/cpu.c:1.22
--- rtems/cpukit/score/cpu/sh/cpu.c:1.21 Sun May 23 00:47:27 2010
+++ rtems/cpukit/score/cpu/sh/cpu.c Fri Feb 11 02:56:10 2011
</font><font color='#997700'>@@ -113,7 +113,7 @@
</font> #endif
/* get vbr */
<font color='#880000'>- asm ( "stc vbr,%0" : "=r" (vbr) );
</font><font color='#000088'>+ __asm__ ( "stc vbr,%0" : "=r" (vbr) );
</font>
*old_handler = vbr[vector] ;
vbr[vector] = new_handler ;
<font color='#997700'>@@ -191,7 +191,7 @@
</font>
for( ; ; )
{
<font color='#880000'>- asm volatile("nop");
</font><font color='#000088'>+ __asm__ volatile("nop");
</font> }
/* insert your "halt" instruction here */ ;
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.35 rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.36
--- rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.35 Thu Oct 21 17:16:57 2010
+++ rtems/cpukit/score/cpu/sh/rtems/score/cpu.h Fri Feb 11 02:56:10 2011
</font><font color='#997700'>@@ -670,9 +670,9 @@
</font> #else
#define _CPU_Fatal_halt( _error)\
{ \
<font color='#880000'>- asm volatile("mov.l %0,r0"::"m" (_error)); \
- asm volatile("mov #1, r4"); \
- asm volatile("trapa #34"); \
</font><font color='#000088'>+ __asm__ volatile("mov.l %0,r0"::"m" (_error)); \
+ __asm__ volatile("mov #1, r4"); \
+ __asm__ volatile("trapa #34"); \
</font> }
#endif
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/rtems/score/sh.h:1.19 rtems/cpukit/score/cpu/sh/rtems/score/sh.h:1.20
--- rtems/cpukit/score/cpu/sh/rtems/score/sh.h:1.19 Thu Dec 3 23:25:30 2009
+++ rtems/cpukit/score/cpu/sh/rtems/score/sh.h Fri Feb 11 02:56:10 2011
</font><font color='#997700'>@@ -104,14 +104,14 @@
</font> #define SH_IRQDIS_VALUE 0xf0
#define sh_disable_interrupts( _level ) \
<font color='#880000'>- asm volatile ( \
</font><font color='#000088'>+ __asm__ volatile ( \
</font> "stc sr,%0\n\t" \
"ldc %1,sr\n\t"\
: "=&r" (_level ) \
: "r" (SH_IRQDIS_VALUE) );
#define sh_enable_interrupts( _level ) \
<font color='#880000'>- asm volatile( "ldc %0,sr\n\t" \
</font><font color='#000088'>+ __asm__ volatile( "ldc %0,sr\n\t" \
</font> "nop\n\t" \
:: "r" (_level) );
<font color='#997700'>@@ -123,7 +123,7 @@
</font> */
#define sh_flash_interrupts( _level ) \
<font color='#880000'>- asm volatile( \
</font><font color='#000088'>+ __asm__ volatile( \
</font> "ldc %1,sr\n\t" \
"nop\n\t" \
"ldc %0,sr\n\t" \
<font color='#997700'>@@ -135,7 +135,7 @@
</font> #define SH_IRQDIS_MASK 0xf0
#define sh_disable_interrupts( _level ) \
<font color='#880000'>- asm volatile ( \
</font><font color='#000088'>+ __asm__ volatile ( \
</font> "stc sr,%0\n\t" \
"mov %0,r5\n\t" \
"or %1,r5\n\t" \
<font color='#997700'>@@ -145,7 +145,7 @@
</font> : "r5" );
#define sh_enable_interrupts( _level ) \
<font color='#880000'>- asm volatile( "ldc %0,sr\n\t" \
</font><font color='#000088'>+ __asm__ volatile( "ldc %0,sr\n\t" \
</font> "nop\n\t" \
:: "r" (_level) );
<font color='#997700'>@@ -157,7 +157,7 @@
</font> */
#define sh_flash_interrupts( _level ) \
<font color='#880000'>- asm volatile( \
</font><font color='#000088'>+ __asm__ volatile( \
</font> "stc sr,r5\n\t" \
"ldc %1,sr\n\t" \
"nop\n\t" \
<font color='#997700'>@@ -172,7 +172,7 @@
</font> { \
register uint32_t _tmpsr ; \
\
<font color='#880000'>- asm volatile( "stc sr, %0" : "=r" (_tmpsr) ); \
</font><font color='#000088'>+ __asm__ volatile( "stc sr, %0" : "=r" (_tmpsr) ); \
</font> _level = (_tmpsr & 0xf0) >> 4 ; \
}
<font color='#997700'>@@ -180,9 +180,9 @@
</font> { \
register uint32_t _tmpsr; \
\
<font color='#880000'>- asm volatile ( "stc sr, %0" : "=r" (_tmpsr) ); \
</font><font color='#000088'>+ __asm__ volatile ( "stc sr, %0" : "=r" (_tmpsr) ); \
</font> _tmpsr = ( _tmpsr & ~0xf0 ) | ((_newlevel) << 4) ; \
<font color='#880000'>- asm volatile( "ldc %0,sr" :: "r" (_tmpsr) ); \
</font><font color='#000088'>+ __asm__ volatile( "ldc %0,sr" :: "r" (_tmpsr) ); \
</font> }
/*
<font color='#997700'>@@ -196,7 +196,7 @@
</font> {
register uint32_t swapped;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> "swap.b %1,%0; "
"swap.w %0,%0; "
"swap.b %0,%0"
<font color='#997700'>@@ -212,7 +212,7 @@
</font> {
register uint16_t swapped ;
<font color='#880000'>- asm volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) );
</font><font color='#000088'>+ __asm__ volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) );
</font>
return( swapped );
}
</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>
* cpu.c, irq.c, rtems/score/lm32.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/lm32/ChangeLog.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%'>cpukit/score/cpu/lm32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/cpu.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/lm32/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/irq.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/lm32/irq.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/lm32.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/lm32/rtems/score/lm32.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.19 rtems/cpukit/score/cpu/lm32/ChangeLog:1.20
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.19 Thu Oct 21 17:12:33 2010
+++ rtems/cpukit/score/cpu/lm32/ChangeLog Fri Feb 11 02:57:36 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, irq.c, rtems/score/lm32.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/lm32/cpu.c:1.7 rtems/cpukit/score/cpu/lm32/cpu.c:1.8
--- rtems/cpukit/score/cpu/lm32/cpu.c:1.7 Sat Mar 27 10:01:51 2010
+++ rtems/cpukit/score/cpu/lm32/cpu.c Fri Feb 11 02:57:36 2011
</font><font color='#997700'>@@ -169,6 +169,6 @@
</font> /* The LM32 softcore itself hasn't any HLT instruction. But the
* LM32 qemu target interprets this nop instruction as HLT.
*/
<font color='#880000'>- asm volatile("and r0, r0, r0");
</font><font color='#000088'>+ __asm__ volatile("and r0, r0, r0");
</font> }
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/irq.c:1.6 rtems/cpukit/score/cpu/lm32/irq.c:1.7
--- rtems/cpukit/score/cpu/lm32/irq.c:1.6 Fri Jul 30 13:52:06 2010
+++ rtems/cpukit/score/cpu/lm32/irq.c Fri Feb 11 02:57:36 2011
</font><font color='#997700'>@@ -35,7 +35,7 @@
</font>
void *_exception_stack_frame;
<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)
{
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/rtems/score/lm32.h:1.3 rtems/cpukit/score/cpu/lm32/rtems/score/lm32.h:1.4
--- rtems/cpukit/score/cpu/lm32/rtems/score/lm32.h:1.3 Fri Aug 20 16:24:16 2010
+++ rtems/cpukit/score/cpu/lm32/rtems/score/lm32.h Fri Feb 11 02:57:36 2011
</font><font color='#997700'>@@ -69,43 +69,43 @@
</font> #endif
#define lm32_read_interrupts( _ip) \
<font color='#880000'>- asm volatile ("rcsr %0, ip":"=r"(_ip));
</font><font color='#000088'>+ __asm__ volatile ("rcsr %0, ip":"=r"(_ip));
</font>
#define lm32_disable_interrupts( _level ) \
do { register uint32_t ie; \
<font color='#880000'>- asm volatile ("rcsr %0,ie":"=r"(ie)); \
</font><font color='#000088'>+ __asm__ volatile ("rcsr %0,ie":"=r"(ie)); \
</font> _level = ie; \
ie &= (~0x0001); \
<font color='#880000'>- asm volatile ("wcsr ie,%0"::"r"(ie)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr ie,%0"::"r"(ie)); \
</font> } while (0)
#define lm32_enable_interrupts( _level ) \
<font color='#880000'>- asm volatile ("wcsr ie,%0"::"r"(_level));
</font><font color='#000088'>+ __asm__ volatile ("wcsr ie,%0"::"r"(_level));
</font>
#define lm32_flash_interrupts( _level ) \
do { register uint32_t ie; \
<font color='#880000'>- asm volatile ("wcsr ie,%0"::"r"(_level)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr ie,%0"::"r"(_level)); \
</font> ie = _level & (~0x0001); \
<font color='#880000'>- asm volatile ("wcsr ie,%0"::"r"(ie)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr ie,%0"::"r"(ie)); \
</font> } while (0)
#define lm32_interrupt_unmask( _mask ) \
do { register uint32_t im; \
<font color='#880000'>- asm volatile ("rcsr %0,im":"=r"(im)); \
</font><font color='#000088'>+ __asm__ volatile ("rcsr %0,im":"=r"(im)); \
</font> im |= _mask; \
<font color='#880000'>- asm volatile ("wcsr im,%0"::"r"(im)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr im,%0"::"r"(im)); \
</font> } while (0)
#define lm32_interrupt_mask( _mask ) \
do { register uint32_t im; \
<font color='#880000'>- asm volatile ("rcsr %0,im":"=r"(im)); \
</font><font color='#000088'>+ __asm__ volatile ("rcsr %0,im":"=r"(im)); \
</font> im &= ~_mask; \
<font color='#880000'>- asm volatile ("wcsr im,%0"::"r"(im)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr im,%0"::"r"(im)); \
</font> } while (0)
#define lm32_interrupt_ack( _mask ) \
do { register uint32_t ip = _mask; \
<font color='#880000'>- asm volatile ("wcsr ip,%0"::"r"(ip)); \
</font><font color='#000088'>+ __asm__ volatile ("wcsr ip,%0"::"r"(ip)); \
</font> } while (0)
#endif /* _RTEMS_SCORE_LM32_H */
</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>
* cpu.c, 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/arm/ChangeLog.diff?r1=text&tr1=1.127&r2=text&tr2=1.128&diff_format=h">M</a></td><td width='1%'>1.128</td><td width='100%'>cpukit/score/cpu/arm/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/arm/cpu.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%'>cpukit/score/cpu/arm/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/arm/rtems/score/cpu.h.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/arm/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/arm/ChangeLog:1.127 rtems/cpukit/score/cpu/arm/ChangeLog:1.128
--- rtems/cpukit/score/cpu/arm/ChangeLog:1.127 Tue Nov 23 09:59:18 2010
+++ rtems/cpukit/score/cpu/arm/ChangeLog Fri Feb 11 03:08:14 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:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-11-23 Gedare Bloom <giddyup44@yahoo.com>
PR 1719/cpukit
<font color='#006600'>diff -u rtems/cpukit/score/cpu/arm/cpu.c:1.31 rtems/cpukit/score/cpu/arm/cpu.c:1.32
--- rtems/cpukit/score/cpu/arm/cpu.c:1.31 Thu Apr 8 05:13:46 2010
+++ rtems/cpukit/score/cpu/arm/cpu.c Fri Feb 11 03:08:14 2011
</font><font color='#997700'>@@ -64,7 +64,7 @@
</font> {
uint32_t arm_switch_reg;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrs %[arm_switch_reg], cpsr\n"
"bic %[arm_switch_reg], #" _CPU_ISR_LEVEL_STRINGOF( CPU_MODES_INTERRUPT_MASK ) "\n"
<font color='#997700'>@@ -81,7 +81,7 @@
</font> ARM_SWITCH_REGISTERS;
uint32_t level;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrs %[level], cpsr\n"
"and %[level], #" _CPU_ISR_LEVEL_STRINGOF( CPU_MODES_INTERRUPT_MASK ) "\n"
<font color='#006600'>diff -u rtems/cpukit/score/cpu/arm/rtems/score/cpu.h:1.46 rtems/cpukit/score/cpu/arm/rtems/score/cpu.h:1.47
--- rtems/cpukit/score/cpu/arm/rtems/score/cpu.h:1.46 Mon Nov 22 07:06:46 2010
+++ rtems/cpukit/score/cpu/arm/rtems/score/cpu.h Fri Feb 11 03:08:14 2011
</font><font color='#997700'>@@ -242,7 +242,7 @@
</font> uint32_t arm_switch_reg;
uint32_t level;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrs %[level], cpsr\n"
"orr %[arm_switch_reg], %[level], #0x80\n"
<font color='#997700'>@@ -258,7 +258,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"msr cpsr, %[level]\n"
ARM_SWITCH_BACK
<font color='#997700'>@@ -271,7 +271,7 @@
</font> {
uint32_t arm_switch_reg;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrs %[arm_switch_reg], cpsr\n"
"msr cpsr, %[level]\n"
<font color='#997700'>@@ -325,7 +325,7 @@
</font> uint32_t _level; \
uint32_t _error = _err; \
_CPU_ISR_Disable( _level ); \
<font color='#880000'>- asm volatile ("mov r0, %0\n" \
</font><font color='#000088'>+ __asm__ volatile ("mov r0, %0\n" \
</font> : "=r" (_error) \
: "0" (_error) \
: "r0" ); \
<font color='#997700'>@@ -367,7 +367,7 @@
</font> return swapped;
#else
uint32_t tmp = value; /* make compiler warnings go away */
<font color='#880000'>- asm volatile ("EOR %1, %0, %0, ROR #16\n"
</font><font color='#000088'>+ __asm__ volatile ("EOR %1, %0, %0, ROR #16\n"
</font> "BIC %1, %1, #0xff0000\n"
"MOV %0, %0, ROR #8\n"
"EOR %0, %0, %1, LSR #8\n"
<font color='#997700'>@@ -431,7 +431,7 @@
</font>
RTEMS_COMPILER_MEMORY_BARRIER();
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"mrs %[psr], cpsr\n"
"bic %[arm_switch_reg], %[psr], #0x80\n"
<font color='#997700'>@@ -447,7 +447,7 @@
</font> {
ARM_SWITCH_REGISTERS;
<font color='#880000'>- asm volatile (
</font><font color='#000088'>+ __asm__ volatile (
</font> ARM_SWITCH_TO_ARM
"msr cpsr, %[psr]\n"
ARM_SWITCH_BACK
</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, avr/interrupt.h, avr/power.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/avr/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%'>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/interrupt.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/avr/avr/interrupt.h</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.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/avr/avr/power.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/cpu.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%'>cpukit/score/cpu/avr/cpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/rtems/score/cpu.h.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%'>cpukit/score/cpu/avr/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/ChangeLog:1.54 rtems/cpukit/score/cpu/avr/ChangeLog:1.55
--- rtems/cpukit/score/cpu/avr/ChangeLog:1.54 Sat Nov 6 17:32:06 2010
+++ rtems/cpukit/score/cpu/avr/ChangeLog Fri Feb 11 03:09:21 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, avr/interrupt.h, avr/power.h, rtems/score/cpu.h:
+ Use "__asm__" instead of "asm" for improved c99-compliance.
+
</font> 2010-11-06 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1715/cpukit
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/avr/interrupt.h:1.3 rtems/cpukit/score/cpu/avr/avr/interrupt.h:1.4
--- rtems/cpukit/score/cpu/avr/avr/interrupt.h:1.3 Mon May 10 11:31:20 2010
+++ rtems/cpukit/score/cpu/avr/avr/interrupt.h Fri Feb 11 03:09:21 2011
</font><font color='#997700'>@@ -218,21 +218,21 @@
</font> # if defined(__AVR_MEGA__) && __AVR_MEGA__
# define ISR_ALIAS(vector, tgt) extern "C" void vector (void) \
__attribute__((signal, naked, __INTR_ATTRS)); \
<font color='#880000'>- void vector (void) { asm volatile ("jmp " __STRINGIFY(tgt) ::); }
</font><font color='#000088'>+ void vector (void) { __asm__ volatile ("jmp " __STRINGIFY(tgt) ::); }
</font> # else /* !__AVR_MEGA */
# define ISR_ALIAS(vector, tgt) extern "C" void vector (void) \
__attribute__((signal, naked, __INTR_ATTRS)); \
<font color='#880000'>- void vector (void) { asm volatile ("rjmp " __STRINGIFY(tgt) ::); }
</font><font color='#000088'>+ void vector (void) { __asm__ volatile ("rjmp " __STRINGIFY(tgt) ::); }
</font> # endif /* __AVR_MEGA__ */
#else /* !__cplusplus */
# if defined(__AVR_MEGA__) && __AVR_MEGA__
# define ISR_ALIAS(vector, tgt) void vector (void) \
__attribute__((signal, naked, __INTR_ATTRS)); \
<font color='#880000'>- void vector (void) { asm volatile ("jmp " __STRINGIFY(tgt) ::); }
</font><font color='#000088'>+ void vector (void) { __asm__ volatile ("jmp " __STRINGIFY(tgt) ::); }
</font> # else /* !__AVR_MEGA */
# define ISR_ALIAS(vector, tgt) void vector (void) \
__attribute__((signal, naked, __INTR_ATTRS)); \
<font color='#880000'>- void vector (void) { asm volatile ("rjmp " __STRINGIFY(tgt) ::); }
</font><font color='#000088'>+ void vector (void) { __asm__ volatile ("rjmp " __STRINGIFY(tgt) ::); }
</font> # endif /* __AVR_MEGA__ */
#endif /* __cplusplus */
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/avr/power.h:1.3 rtems/cpukit/score/cpu/avr/avr/power.h:1.4
--- rtems/cpukit/score/cpu/avr/avr/power.h:1.3 Mon May 10 11:31:24 2010
+++ rtems/cpukit/score/cpu/avr/avr/power.h Fri Feb 11 03:09:21 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
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/cpu.c:1.16 rtems/cpukit/score/cpu/avr/cpu.c:1.17
--- rtems/cpukit/score/cpu/avr/cpu.c:1.16 Sat Mar 27 10:01:24 2010
+++ rtems/cpukit/score/cpu/avr/cpu.c Fri Feb 11 03:09:21 2011
</font><font color='#997700'>@@ -166,7 +166,7 @@
</font> void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
<font color='#880000'>- for( ; ; ) asm volatile ("sleep"::);
</font><font color='#000088'>+ for( ; ; ) __asm__ volatile ("sleep"::);
</font> /* insert your "halt" instruction here */ ;
return (void *) 0;
}
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.31 rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.32
--- rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.31 Sat Nov 6 17:32:06 2010
+++ rtems/cpukit/score/cpu/avr/rtems/score/cpu.h Fri Feb 11 03:09:21 2011
</font><font color='#997700'>@@ -425,7 +425,7 @@
</font>
typedef struct {
uint16_t<span style="background-color: #FF0000"> </span> stack_pointer;
<font color='#880000'>-<span style="background-color: #FF0000"> </span> uint8_t status; //SREG
</font><font color='#000088'>+<span style="background-color: #FF0000"> </span> uint8_t status; /* SREG */
</font> } Context_Control;
#define _CPU_Context_Get_SP( _context ) \
<font color='#997700'>@@ -623,7 +623,7 @@
</font> #define _CPU_ISR_Disable( _isr_cookie ) \
do { \
(_isr_cookie) = SREG; \
<font color='#880000'>- asm volatile ("cli"::); \
</font><font color='#000088'>+ __asm__ volatile ("cli"::); \
</font> } while (0)
/*
<font color='#997700'>@@ -639,7 +639,7 @@
</font> #define _CPU_ISR_Enable( _isr_cookie ) \
do { \
SREG = _isr_cookie; \
<font color='#880000'>- asm volatile ("sei"::); \
</font><font color='#000088'>+ __asm__ volatile ("sei"::); \
</font> } while (0)
/*
<font color='#997700'>@@ -656,9 +656,9 @@
</font> #define _CPU_ISR_Flash( _isr_cookie ) \
do { \
SREG=(_isr_cookie); \
<font color='#880000'>- asm volatile("sei"::); \
</font><font color='#000088'>+ __asm__ volatile("sei"::); \
</font> (_isr_cookie) = SREG; \
<font color='#880000'>- asm volatile("cli"::); \
</font><font color='#000088'>+ __asm__ volatile("cli"::); \
</font> } while (0)
/*
<font color='#997700'>@@ -924,7 +924,7 @@
</font>
/* functions */
<font color='#880000'>-/*context_initialize asm function*/
</font><font color='#000088'>+/*context_initialize asm-function*/
</font>
void context_initialize(unsigned short* context,
unsigned short stack_add,
</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>