From 05d72d5e0963d866ba998b86e1af2d4f7e69ba82 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 08:56:10 +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.c, cpu.c, rtems/score/cpu.h, rtems/score/sh.h: Use "__asm__" instead of "asm" for improved c99-compliance. --- cpukit/score/cpu/sh/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/sh/cpu.c') 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 */ ; } -- cgit v1.2.3