summaryrefslogtreecommitdiff
path: root/firmware/asm/sh
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2012-10-22 21:30:01 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2012-10-24 14:02:41 +0200
commitc975de1534f4b4092ad75f85353eec32a9a31b92 (patch)
tree611c581d6ce81b6575f8b20ec8cd795e85ccb298 /firmware/asm/sh
parent8ad8473d814c4ce4db62d35759939f1fae146361 (diff)
downloadrockbox-c975de1534f4b4092ad75f85353eec32a9a31b92.tar.gz
rockbox-c975de1534f4b4092ad75f85353eec32a9a31b92.zip
SH gcc 4.6.3 with link-time optimization, for Archos targets
This is work from FS#12431 synced to current HEAD and slightly tweaked (gcc 4.6.2 -> 4.6.3, binutils 2.21.1 -> 2.22) Change-Id: I76af91e80ac2a9c16a776c7f0a33cc51603bbf9b
Diffstat (limited to 'firmware/asm/sh')
-rw-r--r--firmware/asm/sh/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/asm/sh/thread.c b/firmware/asm/sh/thread.c
index e63470c4a1..c0e0ceb549 100644
--- a/firmware/asm/sh/thread.c
+++ b/firmware/asm/sh/thread.c
@@ -30,6 +30,7 @@ static void USED_ATTR __start_thread(void)
30{ 30{
31 /* r8 = context */ 31 /* r8 = context */
32 asm volatile ( 32 asm volatile (
33 ".global _start_thread \n"
33 "_start_thread: \n" /* Start here - no naked attribute */ 34 "_start_thread: \n" /* Start here - no naked attribute */
34 "mov.l @(4, r8), r0 \n" /* Fetch thread function pointer */ 35 "mov.l @(4, r8), r0 \n" /* Fetch thread function pointer */
35 "mov.l @(28, r8), r15 \n" /* Set initial sp */ 36 "mov.l @(28, r8), r15 \n" /* Set initial sp */