diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-31 14:42:27 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-31 14:42:27 +0000 |
commit | 74cee6297c87d9f94ff9d68ca19ba39fc7cc6ae6 (patch) | |
tree | ef8121a16c8451df69b319ea5cde296bc9292c51 /firmware | |
parent | 09cc3e604d79fca8ca8bb6add2895732926880d9 (diff) | |
download | rockbox-74cee6297c87d9f94ff9d68ca19ba39fc7cc6ae6.tar.gz rockbox-74cee6297c87d9f94ff9d68ca19ba39fc7cc6ae6.zip |
rolo: use BX for ARM branches
This is equivalent to mov pc
Remove an instruction from the asm() for PP cop restart : use register constraint
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26431 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/rolo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index 69166785ad..078a4e9827 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -90,9 +90,8 @@ void rolo_restart_cop(void) cpu_reply = 2; asm volatile( - "mov r0, %0 \n" - "mov pc, r0 \n" - : : "I"(DRAM_START) + "bx %0 \n" + : : "r"(DRAM_START) ); } #endif /* NUM_CORES > 1 */ @@ -168,7 +167,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest, #endif asm volatile( - "mov pc, %0 \n" + "bx %0 \n" : : "r"(DRAM_START) ); @@ -178,7 +177,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest, cpucache_invalidate(); #endif asm volatile( - "mov pc, %0 \n" + "bx %0 \n" : : "r"(dest) ); #elif defined(CPU_MIPS) |