score: Remove volatile from asm statements

The instructions to get the processor current index have no
side-effects.
This commit is contained in:
Sebastian Huber
2014-02-14 10:28:30 +01:00
parent 24bf11eca1
commit 6f90ef752d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
);
+1 -1
View File
@@ -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)
);