From 01850cde141bac3b4b4e6337d0515b84f8fb2636 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 09:13:08 +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 * cpu.c, rtems/asm.h, rtems/score/cpu.h: Use "__asm__" instead of "asm" for improved c99-compliance. --- cpukit/score/cpu/h8300/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/h8300/cpu.c') diff --git a/cpukit/score/cpu/h8300/cpu.c b/cpukit/score/cpu/h8300/cpu.c index 98ebf71563..1c82ee4880 100644 --- a/cpukit/score/cpu/h8300/cpu.c +++ b/cpukit/score/cpu/h8300/cpu.c @@ -53,7 +53,7 @@ uint32_t _CPU_ISR_Get_level( void ) #if defined(__H8300__) #warning "How do we get ccr on base CPU models" #else - asm volatile ( "stc ccr, %0" : "=m" (_ccr) : ); + __asm__ volatile ( "stc ccr, %0" : "=m" (_ccr) : ); #endif if ( _ccr & 0x80 ) @@ -152,7 +152,7 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ) for( ; ; ) IDLE_Monitor(); - /*asm(" sleep \n"); */ + /* __asm__ (" sleep \n"); */ /* insert your "halt" instruction here */ ; } #endif -- cgit v1.2.3