summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-13 13:08:46 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-14 10:28:30 +0100
commit6f90ef752db1e5ae1af661fc15acef6d07d2c097 (patch)
tree01629d057afda64f84c1533fccb51386a6509693
parentscore: Add CPU counter support (diff)
downloadrtems-6f90ef752db1e5ae1af661fc15acef6d07d2c097.tar.bz2
score: Remove volatile from asm statements
The instructions to get the processor current index have no side-effects.
-rw-r--r--cpukit/score/cpu/arm/rtems/score/cpu.h2
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index b423dbac0a..d7c54ade3a 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -476,7 +476,7 @@ void _CPU_Context_validate( uintptr_t pattern );
uint32_t mpidr;
/* Use ARMv7 Multiprocessor Affinity Register (MPIDR) */
- __asm__ volatile (
+ __asm__ (
"mrc p15, 0, %[mpidr], c0, c0, 5\n"
: [mpidr] "=&r" (mpidr)
);
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 647c665ee6..f4aa9c4f1a 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -1040,7 +1040,7 @@ void _CPU_Context_validate( uintptr_t pattern );
uint32_t pir;
/* Use Book E Processor ID Register (PIR) */
- __asm__ volatile (
+ __asm__ (
"mfspr %[pir], 286"
: [pir] "=&r" (pir)
);