summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:25:21 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:25:21 +0000
commitd00ca429313dd2bcf13f12c14e6c93a3a948f2b6 (patch)
tree72d87f878f0d1155ef4e0557d622452e1c8dfd82 /cpukit/score
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d00ca429313dd2bcf13f12c14e6c93a3a948f2b6.tar.bz2
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.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/cpu/sparc64/ChangeLog5
-rw-r--r--cpukit/score/cpu/sparc64/rtems/score/cpu.h4
-rw-r--r--cpukit/score/cpu/sparc64/rtems/score/sparc64.h32
3 files changed, 23 insertions, 18 deletions
diff --git a/cpukit/score/cpu/sparc64/ChangeLog b/cpukit/score/cpu/sparc64/ChangeLog
index 6da3e83021..ce31be0d58 100644
--- a/cpukit/score/cpu/sparc64/ChangeLog
+++ b/cpukit/score/cpu/sparc64/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2010-11-16 Gedare Bloom <giddyup44@yahoo.com>
* rtems/score/sparc64.h: Fix typo.
diff --git a/cpukit/score/cpu/sparc64/rtems/score/cpu.h b/cpukit/score/cpu/sparc64/rtems/score/cpu.h
index 0d684ea1b5..3b424f8b74 100644
--- a/cpukit/score/cpu/sparc64/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc64/rtems/score/cpu.h
@@ -844,7 +844,7 @@ void _CPU_Context_Initialize(
#define _CPU_Context_Initialization_at_thread_begin() \
do { \
- asm volatile ("set _Thread_Handler,%%i7\n"::); \
+ __asm__ volatile ("set _Thread_Handler,%%i7\n"::); \
} while (0)
/*
@@ -896,7 +896,7 @@ void _CPU_Context_Initialize(
uint32_t level; \
\
level = sparc_disable_interrupts(); \
- asm volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) ); \
+ __asm__ volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) ); \
while (1); /* loop forever */ \
} while (0)
diff --git a/cpukit/score/cpu/sparc64/rtems/score/sparc64.h b/cpukit/score/cpu/sparc64/rtems/score/sparc64.h
index 77125d1210..41862c2362 100644
--- a/cpukit/score/cpu/sparc64/rtems/score/sparc64.h
+++ b/cpukit/score/cpu/sparc64/rtems/score/sparc64.h
@@ -170,7 +170,7 @@ extern "C" {
#define nop() \
do { \
- asm volatile ( "nop" ); \
+ __asm__ volatile ( "nop" ); \
} while ( 0 )
/*
@@ -180,12 +180,12 @@ extern "C" {
#define sparc64_get_pstate( _pstate ) \
do { \
(_pstate) = 0; \
- asm volatile( "rdpr %%pstate, %0" : "=r" (_pstate) : "0" (_pstate) ); \
+ __asm__ volatile( "rdpr %%pstate, %0" : "=r" (_pstate) : "0" (_pstate) ); \
} while ( 0 )
#define sparc64_set_pstate( _pstate ) \
do { \
- asm volatile ( \
+ __asm__ volatile ( \
"wrpr %%g0, %0, %%pstate " : "=r" ((_pstate)) : "0" ((_pstate)) ); \
} while ( 0 )
@@ -196,12 +196,12 @@ extern "C" {
#define sparc64_get_pil( _pil ) \
do { \
(_pil) = 0; \
- asm volatile( "rdpr %%pil, %0" : "=r" (_pil) : "0" (_pil) ); \
+ __asm__ volatile( "rdpr %%pil, %0" : "=r" (_pil) : "0" (_pil) ); \
} while ( 0 )
#define sparc64_set_pil( _pil ) \
do { \
- asm volatile ( "wrpr %%g0, %0, %%pil " : "=r" ((_pil)) : "0" ((_pil)) ); \
+ __asm__ volatile ( "wrpr %%g0, %0, %%pil " : "=r" ((_pil)) : "0" ((_pil)) ); \
} while ( 0 )
@@ -212,12 +212,12 @@ extern "C" {
#define sparc64_get_tba( _tba ) \
do { \
(_tba) = 0; /* to avoid unitialized warnings */ \
- asm volatile( "rdpr %%tba, %0" : "=r" (_tba) : "0" (_tba) ); \
+ __asm__ volatile( "rdpr %%tba, %0" : "=r" (_tba) : "0" (_tba) ); \
} while ( 0 )
#define sparc64_set_tba( _tba ) \
do { \
- asm volatile( "wrpr %%g0, %0, %%tba" : "=r" (_tba) : "0" (_tba) ); \
+ __asm__ volatile( "wrpr %%g0, %0, %%tba" : "=r" (_tba) : "0" (_tba) ); \
} while ( 0 )
/*
@@ -227,12 +227,12 @@ extern "C" {
#define sparc64_get_tl( _tl ) \
do { \
(_tl) = 0; /* to avoid unitialized warnings */ \
- asm volatile( "rdpr %%tl, %0" : "=r" (_tl) : "0" (_tl) ); \
+ __asm__ volatile( "rdpr %%tl, %0" : "=r" (_tl) : "0" (_tl) ); \
} while ( 0 )
#define sparc64_set_tl( _tl ) \
do { \
- asm volatile( "wrpr %%g0, %0, %%tl" : "=r" (_tl) : "0" (_tl) ); \
+ __asm__ volatile( "wrpr %%g0, %0, %%tl" : "=r" (_tl) : "0" (_tl) ); \
} while ( 0 )
@@ -247,7 +247,7 @@ extern "C" {
#define sparc64_read_stick( _stick ) \
do { \
(_stick) = 0; \
- asm volatile( "rd %%stick, %0" : "=r" (_stick) : "0" (_stick) ); \
+ __asm__ volatile( "rd %%stick, %0" : "=r" (_stick) : "0" (_stick) ); \
} while ( 0 )
/*
@@ -260,7 +260,7 @@ extern "C" {
*/
#define sparc64_write_stick_cmpr( _stick_cmpr ) \
do { \
- asm volatile( "wr %%g0, %0, %%stick_cmpr" : "=r" (_stick_cmpr) \
+ __asm__ volatile( "wr %%g0, %0, %%stick_cmpr" : "=r" (_stick_cmpr) \
: "0" (_stick_cmpr) ); \
} while ( 0 )
@@ -270,7 +270,7 @@ extern "C" {
#define sparc64_read_tick( _tick ) \
do { \
(_tick) = 0; \
- asm volatile( "rd %%tick, %0" : "=r" (_tick) : "0" (_tick) ); \
+ __asm__ volatile( "rd %%tick, %0" : "=r" (_tick) : "0" (_tick) ); \
} while ( 0 )
/*
@@ -278,7 +278,7 @@ extern "C" {
*/
#define sparc64_write_tick_cmpr( _tick_cmpr ) \
do { \
- asm volatile( "wr %%g0, %0, %%tick_cmpr" : "=r" (_tick_cmpr) \
+ __asm__ volatile( "wr %%g0, %0, %%tick_cmpr" : "=r" (_tick_cmpr) \
: "0" (_tick_cmpr) ); \
} while ( 0 )
@@ -289,7 +289,7 @@ extern "C" {
*/
#define sparc64_clear_interrupt_bits( _bit_mask ) \
do { \
- asm volatile( "wr %%g0, %0, %%clear_softint" : "=r" (_bit_mask) \
+ __asm__ volatile( "wr %%g0, %0, %%clear_softint" : "=r" (_bit_mask) \
: "0" (_bit_mask)); \
} while ( 0 )
@@ -301,12 +301,12 @@ extern "C" {
#define sparc_get_y( _y ) \
do { \
- asm volatile( "rd %%y, %0" : "=r" (_y) : "0" (_y) ); \
+ __asm__ volatile( "rd %%y, %0" : "=r" (_y) : "0" (_y) ); \
} while ( 0 )
#define sparc_set_y( _y ) \
do { \
- asm volatile( "wr %0, %%y" : "=r" (_y) : "0" (_y) ); \
+ __asm__ volatile( "wr %0, %%y" : "=r" (_y) : "0" (_y) ); \
} while ( 0 )
/************* /DEPRECATED ****************/