Changeset d157a4fd in rtems


Ignore:
Timestamp:
Sep 4, 2013, 12:03:47 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a6d35256
Parents:
03e097b7
git-author:
Sebastian Huber <sebastian.huber@…> (09/04/13 12:03:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/05/13 07:37:17)
Message:

bsps/arm: Fix ARM CP15 opcode for get functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/shared/include/arm-cp15.h

    r03e097b7 rd157a4fd  
    587587  __asm__ volatile (
    588588    ARM_SWITCH_TO_ARM
    589     "mcr p15, 1, %[val], c0, c0, 0\n"
     589    "mrc p15, 1, %[val], c0, c0, 0\n"
    590590     ARM_SWITCH_BACK
    591591    : [val] "=&r" (val) ARM_SWITCH_ADDITIONAL_OUTPUT
     
    604604  __asm__ volatile (
    605605    ARM_SWITCH_TO_ARM
    606     "mcr p15, 1, %[val], c0, c0, 1\n"
     606    "mrc p15, 1, %[val], c0, c0, 1\n"
    607607     ARM_SWITCH_BACK
    608608    : [val] "=&r" (val) ARM_SWITCH_ADDITIONAL_OUTPUT
     
    621621  __asm__ volatile (
    622622    ARM_SWITCH_TO_ARM
    623     "mcr p15, 2, %[val], c0, c0, 0\n"
     623    "mrc p15, 2, %[val], c0, c0, 0\n"
    624624     ARM_SWITCH_BACK
    625625    : [val] "=&r" (val) ARM_SWITCH_ADDITIONAL_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.