diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 08:56:10 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-11 08:56:10 +0000 |
commit | 05d72d5e0963d866ba998b86e1af2d4f7e69ba82 (patch) | |
tree | 444e0b0cf69e85cbcaccd98df6ccd6e7883c5ccf /cpukit/score/cpu/sh/cpu.c | |
parent | 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-05d72d5e0963d866ba998b86e1af2d4f7e69ba82.tar.bz2 |
2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* context.c, cpu.c, rtems/score/cpu.h, rtems/score/sh.h:
Use "__asm__" instead of "asm" for improved c99-compliance.
Diffstat (limited to 'cpukit/score/cpu/sh/cpu.c')
-rw-r--r-- | cpukit/score/cpu/sh/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c index 2adb185126..f6f85e3c4c 100644 --- a/cpukit/score/cpu/sh/cpu.c +++ b/cpukit/score/cpu/sh/cpu.c @@ -113,7 +113,7 @@ void _CPU_ISR_install_raw_handler( #endif /* get vbr */ - asm ( "stc vbr,%0" : "=r" (vbr) ); + __asm__ ( "stc vbr,%0" : "=r" (vbr) ); *old_handler = vbr[vector] ; vbr[vector] = new_handler ; @@ -191,7 +191,7 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ) for( ; ; ) { - asm volatile("nop"); + __asm__ volatile("nop"); } /* insert your "halt" instruction here */ ; } |