Changeset 901ffac in rtems


Ignore:
Timestamp:
Feb 11, 2011, 9:20:50 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
06225d5
Parents:
c05f6238
Message:

2011-02-11 Ralf Corsépius <ralf.corsepius@…>

  • context_init.c, cpu.c, varvects.h, rtems/score/cpu.h, rtems/score/m32c.h: Use "asm" instead of "asm" for improved c99-compliance.
Location:
cpukit/score/cpu/m32c
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/m32c/ChangeLog

    rc05f6238 r901ffac  
     12011-02-11      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * context_init.c, cpu.c, varvects.h, rtems/score/cpu.h,
     4        rtems/score/m32c.h:
     5        Use "__asm__" instead of "asm" for improved c99-compliance.
     6
    172010-10-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/score/cpu/m32c/context_init.c

    rc05f6238 r901ffac  
    3737#else
    3838  #define _get_sb( _sb ) \
    39     asm volatile( "stc sb, %0" : "=r" (_sb))
     39    __asm__ volatile( "stc sb, %0" : "=r" (_sb))
    4040#endif
    4141
  • cpukit/score/cpu/m32c/cpu.c

    rc05f6238 r901ffac  
    3434{
    3535  #if !defined(__r8c_cpu__)
    36     asm volatile( "ldc    #__var_vects,intb" );
     36    __asm__ volatile( "ldc    #__var_vects,intb" );
    3737  #endif
    3838}
  • cpukit/score/cpu/m32c/rtems/score/cpu.h

    rc05f6238 r901ffac  
    675675    m32c_get_flg( _flg ); \
    676676    _isr_cookie = _flg; \
    677     asm volatile( "fclr I" ); \
     677    __asm__ volatile( "fclr I" ); \
    678678  } while(0)
    679679
     
    713713    int _flg = (int) (_isr_cookie); \
    714714    m32c_set_flg( _flg ); \
    715     asm volatile( "fclr I" ); \
     715    __asm__ volatile( "fclr I" ); \
    716716  } while(0)
    717717
     
    735735#define _CPU_ISR_Set_level( _new_level ) \
    736736  do { \
    737     if (_new_level) asm volatile( "fclr I" ); \
    738     else            asm volatile( "fset I" ); \
     737    if (_new_level) __asm__ volatile( "fclr I" ); \
     738    else            __asm__ volatile( "fset I" ); \
    739739  } while(0)
    740740
  • cpukit/score/cpu/m32c/rtems/score/m32c.h

    rc05f6238 r901ffac  
    6161
    6262#define m32c_get_flg( _flg ) \
    63   asm volatile( "stc flg, %0" : "=r" (_flg))
     63  __asm__ volatile( "stc flg, %0" : "=r" (_flg))
    6464
    6565#define m32c_set_flg( _flg ) \
    66   asm volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) )
     66  __asm__ volatile( "ldc %1, flg" : "=r" (_flg) : "r" (_flg) )
    6767
    6868#ifdef __cplusplus
  • cpukit/score/cpu/m32c/varvects.h

    rc05f6238 r901ffac  
    4343
    4444#define _set_var_vect(f,n) \
    45   { asm ("mov.w #%%lo16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4));  \
    46     asm ("mov.w #%%hi16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4+2)); }
     45  { __asm__ ("mov.w #%%lo16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4));      \
     46    __asm__ ("mov.w #%%hi16(%d0),__var_vects+%d1" : : "s" (f), "g" (n*4+2)); }
    4747
    4848#else
Note: See TracChangeset for help on using the changeset viewer.