From 901ffaca0b28a402b8f6b669c49e48801abfbf85 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 09:20:50 +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 * context_init.c, cpu.c, varvects.h, rtems/score/cpu.h, rtems/score/m32c.h: Use "__asm__" instead of "asm" for improved c99-compliance. --- cpukit/score/cpu/m32c/rtems/score/cpu.h | 8 ++++---- cpukit/score/cpu/m32c/rtems/score/m32c.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cpukit/score/cpu/m32c/rtems/score') diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h index fbb115e4a7..4d75c0a930 100644 --- a/cpukit/score/cpu/m32c/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h @@ -674,7 +674,7 @@ typedef struct { int _flg; \ m32c_get_flg( _flg ); \ _isr_cookie = _flg; \ - asm volatile( "fclr I" ); \ + __asm__ volatile( "fclr I" ); \ } while(0) /** @@ -712,7 +712,7 @@ typedef struct { do { \ int _flg = (int) (_isr_cookie); \ m32c_set_flg( _flg ); \ - asm volatile( "fclr I" ); \ + __asm__ volatile( "fclr I" ); \ } while(0) /** @@ -734,8 +734,8 @@ typedef struct { */ #define _CPU_ISR_Set_level( _new_level ) \ do { \ - if (_new_level) asm volatile( "fclr I" ); \ - else asm volatile( "fset I" ); \ + if (_new_level) __asm__ volatile( "fclr I" ); \ + else __asm__ volatile( "fset I" ); \ } while(0) /** diff --git a/cpukit/score/cpu/m32c/rtems/score/m32c.h b/cpukit/score/cpu/m32c/rtems/score/m32c.h index 827898eb4a..0c3fe43b7f 100644 --- a/cpukit/score/cpu/m32c/rtems/score/m32c.h +++ b/cpukit/score/cpu/m32c/rtems/score/m32c.h @@ -60,10 +60,10 @@ extern "C" { #define CPU_NAME "m32c" #define m32c_get_flg( _flg ) \ - asm volatile( "stc flg, %0" : "=r" (_flg)) + __asm__ volatile( "stc flg, %0" : "=r" (_flg)) #define m32c_set_flg( _flg ) \ - asm volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) ) + __asm__ volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) ) #ifdef __cplusplus } -- cgit v1.2.3