Changeset a42d8b0 in rtems


Ignore:
Timestamp:
Feb 11, 2011, 12:46:34 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
d14d339
Parents:
0d01467b
Message:

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

  • console/console.c, irq/irq.c: Use "asm" instead of "asm" for improved c99-compliance.
Location:
c/src/lib/libbsp/powerpc/mbx8xx
Files:
3 edited

Legend:

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

    r0d01467b ra42d8b0  
     12011-02-11      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * console/console.c, irq/irq.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/mbx8xx/console/console.c

    r0d01467b ra42d8b0  
    175175
    176176  /* Check for a char in the input FIFO using .CIO_STAT */
    177   asm volatile( "li 10,0x202\n\
     177  __asm__ volatile( "li 10,0x202\n\
    178178                 mr 3, %0\n\
    179179                 mr 4, %1\n\
     
    187187    input_params.nbytes_requested = 1;
    188188
    189     asm volatile( "li     10,0x200     /* Code for .CIO_READ */\n\
     189    __asm__ volatile( "li     10,0x200     /* Code for .CIO_READ */\n\
    190190                   mr    3, %0         /* Address of input_params */\n\
    191191                   mr    4, %1         /* Address of output_params */\n\
     
    285285    do {
    286286      /* Check for space in the output FIFO */
    287       asm volatile( "li 10,0x202        /* Code for .CIO_STAT */\n\
     287      __asm__ volatile( "li 10,0x202        /* Code for .CIO_STAT */\n\
    288288                     mr 3, %0           /* Address of input_params */\n\
    289289                     mr 4, %1           /* Address of output_params */\n\
     
    299299    input_params.nbytes_to_output = len - i;
    300300
    301     asm volatile( "li 10,0x201          /* Code for .CIO_WRITE */\n\
     301    __asm__ volatile( "li 10,0x201          /* Code for .CIO_WRITE */\n\
    302302                   mr 3, %0             /* Address of input_params */\n\
    303303                   mr 4, %1             /* Address of output_params */\n\
  • c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c

    r0d01467b ra42d8b0  
    223223     * ICTL and MSR are executed in order
    224224     */
    225     asm volatile("sync":::"memory");
     225    __asm__ volatile("sync":::"memory");
    226226
    227227    _CPU_MSR_GET(msr);
     
    237237     * ICTL and MSR are executed in order
    238238     */
    239     asm volatile("sync":::"memory");
     239    __asm__ volatile("sync":::"memory");
    240240
    241241    if (cpmIntr)  {
Note: See TracChangeset for help on using the changeset viewer.