summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/h8300/cpu.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:13:08 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-11 09:13:08 +0000
commit01850cde141bac3b4b4e6337d0515b84f8fb2636 (patch)
treeb32d420e3d38d07f00b6830789bc7c478df0977f /cpukit/score/cpu/h8300/cpu.c
parent2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-01850cde141bac3b4b4e6337d0515b84f8fb2636.tar.bz2
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/asm.h, rtems/score/cpu.h: Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'cpukit/score/cpu/h8300/cpu.c')
-rw-r--r--cpukit/score/cpu/h8300/cpu.c4
1 files changed, 2 insertions, 2 deletions
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