Changeset ecb869f in rtems


Ignore:
Timestamp:
Jul 17, 2008, 11:29:32 AM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, master
Children:
677cf05f
Parents:
1380b63
Message:

Fixed typo in access macros for device control registers (DCR)

Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r1380b63 recb869f  
     12008-07-17      Thomas Doerfler <thomas.doerfler@embedded-brains.de>
     2
     3        * shared/include/powerpc-utility.h:
     4        Fixed typo in access macros for device control registers (DCR)
     5       
    162008-07-16      Till Straumann <strauman@slac.stanford.edu>
    27
  • c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h

    r1380b63 recb869f  
    269269 */
    270270#define PPC_DEVICE_CONTROL_REGISTER(dcr)                        \
    271   ({uint32_t val;asm volatile ("mfspr %0," PPC_STRINGOF(dcr)    \
     271  ({uint32_t val;asm volatile ("mfdcr %0," PPC_STRINGOF(dcr)    \
    272272                               : "=r" (val)); val;})
    273273
    274274#define PPC_SET_DEVICE_CONTROL_REGISTER(dcr,val)        \
    275275  do {                                                  \
    276     asm volatile ("mtspr " PPC_STRINGOF(dcr)",%0"       \
     276    asm volatile ("mtdcr " PPC_STRINGOF(dcr)",%0"       \
    277277                  :: "r" (val));                        \
    278278    } while (0)
Note: See TracChangeset for help on using the changeset viewer.