Changeset b0bbd61 in rtems


Ignore:
Timestamp:
Feb 11, 2011, 12:53:17 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
6001e7e
Parents:
3e6c5a7
Message:

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

  • startup/bspstart.c, timer/timer.c: Use "asm" instead of "asm" for improved c99-compliance.
Location:
c/src/lib/libbsp/mips/csb350
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/csb350/ChangeLog

    r3e6c5a7 rb0bbd61  
     12011-02-11      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * startup/bspstart.c, timer/timer.c:
     4        Use "__asm__" instead of "asm" for improved c99-compliance.
     5
    162011-02-09      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/mips/csb350/startup/bspstart.c

    r3e6c5a7 rb0bbd61  
    3535  mips_set_sr( 0x7f00 );  /* all interrupts unmasked but globally off */
    3636                          /* depend on the IRC to take care of things */
    37   asm volatile ("mtc0 %0, $11\n" :: "r" (compare));
     37  __asm__ volatile ("mtc0 %0, $11\n" :: "r" (compare));
    3838  mips_install_isr_entries();
    3939}
  • c/src/lib/libbsp/mips/csb350/timer/timer.c

    r3e6c5a7 rb0bbd61  
    2323void benchmark_timer_initialize(void)
    2424{
    25     asm volatile ("mfc0 %0, $9\n" : "=r" (tstart));
     25    __asm__ volatile ("mfc0 %0, $9\n" : "=r" (tstart));
    2626    /* tick time in picooseconds */
    2727}
     
    3737  uint32_t  cnt;
    3838
    39   asm volatile ("mfc0 %0, $9\n" : "=r" (cnt));
     39  __asm__ volatile ("mfc0 %0, $9\n" : "=r" (cnt));
    4040
    4141  total = cnt - tstart;
Note: See TracChangeset for help on using the changeset viewer.