mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-28 10:50:10 +08:00
score: Remove volatile from asm statements
The instructions to get the processor current index have no side-effects.
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user