Changeset 4ac74d01 in rtems


Ignore:
Timestamp:
Feb 11, 2011, 12:49:35 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
81ef685
Parents:
0bc95dc9
Message:

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

  • include/bsp.h, include/tm27.h, startup/bspstart.c: Use "asm" instead of "asm" for improved c99-compliance.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r0bc95dc9 r4ac74d01  
     12011-02-11      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * include/bsp.h, include/tm27.h, startup/bspstart.c:
     4        Use "__asm__" instead of "asm" for improved c99-compliance.
     5
    162011-02-02      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/powerpc/psim/include/bsp.h

    r0bc95dc9 r4ac74d01  
    6666/* macros */
    6767#define Processor_Synchronize() \
    68   asm(" eieio ")
     68  __asm__ (" eieio ")
    6969
    7070struct rtems_bsdnet_ifconfig;
  • c/src/lib/libbsp/powerpc/psim/include/tm27.h

    r0bc95dc9 r4ac74d01  
    4343  do { \
    4444    uint32_t _clicks = 1; \
    45     asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
     45    __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
    4646  } while (0)
    4747
     
    5050  do { \
    5151    uint32_t _clicks = 0xffffffff; \
    52     asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
     52    __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
    5353  } while (0)
    5454
     
    5757    uint32_t _msr = 0; \
    5858    _ISR_Set_level( 0 ); \
    59     asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
     59    __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
    6060    _msr |=  0x8002; \
    61     asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
     61    __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
    6262  } while (0)
    6363
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    r0bc95dc9 r4ac74d01  
    138138
    139139  _write_MSR(_read_MSR() | MSR_DR | MSR_IR);
    140   asm volatile("sync; isync");
     140  __asm__ volatile("sync; isync");
    141141
    142142}
Note: See TracChangeset for help on using the changeset viewer.