diff options
| author | Thom Johansen <thomj@rockbox.org> | 2005-11-15 16:56:20 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2005-11-15 16:56:20 +0000 |
| commit | 391f6af7ab7eb463485dad3c0a3a895243e86694 (patch) | |
| tree | c533b0116bf0bfbf4b2409329e45db7d8b9294a7 | |
| parent | c2678666756d8875cdb647dd8de9560c7f547fc2 (diff) | |
| download | rockbox-391f6af7ab7eb463485dad3c0a3a895243e86694.zip rockbox-391f6af7ab7eb463485dad3c0a3a895243e86694.tar.gz rockbox-391f6af7ab7eb463485dad3c0a3a895243e86694.tar.bz2 rockbox-391f6af7ab7eb463485dad3c0a3a895243e86694.tar.xz | |
Shave off an instruction by use of conditionals.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7896 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 9a2dbd3..5cd4dbe 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -102,10 +102,8 @@ static inline void load_context(const void* addr) "ldr r0, [%0, #44] \n" /* load start pointer */ "mov r1, #0 \n" "cmp r0, r1 \n" /* check for NULL */ - "beq .running \n" /* if it's NULL, we're already running */ - "str r1, [%0, #44] \n" - "mov pc, r0 \n" /* not already running, so jump to start */ - ".running: \n" + "strne r1, [%0, #44] \n" /* if it's NULL, we're already running */ + "movne pc, r0 \n" /* not already running, so jump to start */ : : "r" (addr) : "r0", "r1" ); } |