Changeset 1f271d9 in mainline


Ignore:
Timestamp:
2013-01-10T22:31:57Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7dc8bf1
Parents:
467f0c0
Message:

arm32: Fix cp15 access generator macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/cp15.h

    r467f0c0 r1f271d9  
    4545{ \
    4646        uint32_t val; \
    47         asm volatile ( "mrc p15, opc1, %0, crn, crm, opc2\n" : "=r" (val) ); \
     47        asm volatile ( "mrc p15, "#opc1", %0, "#crn", "#crm", "#opc2"\n" : "=r" (val) ); \
    4848        return val; \
    4949}
     
    5151static inline void name##_write(uint32_t val) \
    5252{ \
    53         asm volatile ( "mrc p15, opc1, %0, crn, crm, opc2\n" :: "r" (val) ); \
     53        asm volatile ( "mrc p15, "#opc1", %0, "#crn", "#crm", "#opc2"\n" :: "r" (val) ); \
    5454}
    5555
Note: See TracChangeset for help on using the changeset viewer.