summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-04-14 11:46:05 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-04-14 11:46:05 +0000
commitd803cf5e4e4e08cedd6f0e8d737512bd50042a5f (patch)
treec24eeae1d0b868183585b4c01efaf65152150757 /firmware
parent036168cbf96d455eea927bcf1701627e81e68a3a (diff)
downloadrockbox-d803cf5e4e4e08cedd6f0e8d737512bd50042a5f.tar.gz
rockbox-d803cf5e4e4e08cedd6f0e8d737512bd50042a5f.tar.bz2
rockbox-d803cf5e4e4e08cedd6f0e8d737512bd50042a5f.zip
Heh. Better way to load the PROCESSOR_ID address. Thanks Thom. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13156 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/system-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h
index 0dd02a8704..7a4c8b603c 100644
--- a/firmware/target/arm/system-target.h
+++ b/firmware/target/arm/system-target.h
@@ -47,7 +47,7 @@ static inline unsigned int current_core(void)
*/
unsigned int core;
asm volatile (
- "ldr %0, =0x60000000 \r\n" /* PROCESSOR_ID */
+ "mov %0, #0x60000000 \r\n" /* PROCESSOR_ID */
"ldrb %0, [%0] \r\n" /* Just load the LSB */
"mov %0, %0, lsr #7 \r\n" /* Bit 7 => index */
: "=&r"(core) /* CPU=0, COP=1 */