From 566fa34827ac7c6438926e3c36797c41d7c7c90f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 09:11:57 +0000 Subject: =?UTF-8?q?2011-02-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rtems/score/cpu.h: Use "__asm__" instead of "asm" for improved c99-compliance. --- cpukit/score/cpu/bfin/ChangeLog | 5 +++++ cpukit/score/cpu/bfin/rtems/score/cpu.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/bfin/ChangeLog b/cpukit/score/cpu/bfin/ChangeLog index 993ff190d6..91b1514a05 100644 --- a/cpukit/score/cpu/bfin/ChangeLog +++ b/cpukit/score/cpu/bfin/ChangeLog @@ -1,3 +1,8 @@ +2011-02-11 Ralf Corsépius + + * rtems/score/cpu.h: + Use "__asm__" instead of "asm" for improved c99-compliance. + 2010-10-21 Joel Sherrill * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h index eef8b875ae..9974212018 100644 --- a/cpukit/score/cpu/bfin/rtems/score/cpu.h +++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h @@ -710,7 +710,7 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; */ #define _CPU_ISR_Disable( _level ) \ { \ - asm volatile ("cli %0; csync \n" : "=d" (_level) ); \ + __asm__ volatile ("cli %0; csync \n" : "=d" (_level) ); \ } @@ -910,7 +910,7 @@ void _CPU_Context_Initialize( */ #define _CPU_Fatal_halt( _error ) \ { \ - asm volatile ( "cli R1; \ + __asm__ volatile ( "cli R1; \ R1 = %0; \ _halt: \ idle; \ @@ -1015,7 +1015,7 @@ void _CPU_Context_Initialize( #if (CPU_USE_GENERIC_BITFIELD_CODE == FALSE) #define _CPU_Bitfield_Find_first_bit( _value, _output ) \ { \ - asm ("bit(1);"): + __asm__ ("bit(1);"): (_output) = 0; /* do something to prevent warnings */ \ } #endif -- cgit v1.2.3