Changeset 294a609 in rtems


Ignore:
Timestamp:
Nov 9, 2011, 6:51:29 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10
Children:
8d4d978
Parents:
e3fbffb
Message:

2011-11-09 Werner Almesberger <werner@…>

PR 1954/cpukit

  • rtems/score/lm32.h: Protect against macro expansion.
Location:
cpukit/score/cpu/lm32
Files:
2 edited

Legend:

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

    re3fbffb r294a609  
     12011-11-09      Werner Almesberger <werner@almesberger.net>
     2
     3        PR 1954/cpukit
     4        * rtems/score/lm32.h: Protect against macro expansion.
     5
    162011-11-09      Werner Almesberger <werner@almesberger.net>
    27
  • cpukit/score/cpu/lm32/rtems/score/lm32.h

    re3fbffb r294a609  
    7272  do { register uint32_t ie; \
    7373    asm volatile ("rcsr %0,ie":"=r"(ie)); \
    74     _level = ie; \
     74    (_level) = ie; \
    7575    ie &= (~0x0001); \
    7676    asm volatile ("wcsr ie,%0"::"r"(ie)); \
     
    8383  do { register uint32_t ie; \
    8484    asm volatile ("wcsr ie,%0"::"r"(_level)); \
    85     ie = _level & (~0x0001); \
     85    ie = (_level) & (~0x0001); \
    8686    asm volatile ("wcsr ie,%0"::"r"(ie)); \
    8787  } while (0)
Note: See TracChangeset for help on using the changeset viewer.