summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos
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/target/sh/archos
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/target/sh/archos')
-rw-r--r--firmware/target/sh/archos/audio-archos.c8
-rw-r--r--firmware/target/sh/archos/timer-archos.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/sh/archos/audio-archos.c b/firmware/target/sh/archos/audio-archos.c
index 2c2579bec5..207f26f250 100644
--- a/firmware/target/sh/archos/audio-archos.c
+++ b/firmware/target/sh/archos/audio-archos.c
@@ -153,7 +153,7 @@ static void play_tick(void)
153 } 153 }
154} 154}
155 155
156void DEI3(void) __attribute__((interrupt_handler)); 156void DEI3(void) __attribute__((interrupt_handler)) USED_ATTR;
157void DEI3(void) 157void DEI3(void)
158{ 158{
159 const void* start; 159 const void* start;
@@ -177,7 +177,7 @@ void DEI3(void)
177 CHCR3 &= ~0x0002; /* Clear DMA interrupt */ 177 CHCR3 &= ~0x0002; /* Clear DMA interrupt */
178} 178}
179 179
180void IMIA1(void) __attribute__((interrupt_handler)); 180void IMIA1(void) __attribute__((interrupt_handler)) USED_ATTR;
181void IMIA1(void) /* Timer 1 interrupt */ 181void IMIA1(void) /* Timer 1 interrupt */
182{ 182{
183 if(playing) 183 if(playing)
@@ -189,14 +189,14 @@ void IMIA1(void) /* Timer 1 interrupt */
189#endif 189#endif
190} 190}
191 191
192void IRQ6(void) __attribute__((interrupt_handler)); 192void IRQ6(void) __attribute__((interrupt_handler)) USED_ATTR;
193void IRQ6(void) /* PB14: MAS stop demand IRQ */ 193void IRQ6(void) /* PB14: MAS stop demand IRQ */
194{ 194{
195 SCR0 &= ~0x80; 195 SCR0 &= ~0x80;
196} 196}
197 197
198#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) 198#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
199void IRQ3(void) __attribute__((interrupt_handler)); 199void IRQ3(void) __attribute__((interrupt_handler)) USED_ATTR;
200void IRQ3(void) /* PA15: MAS demand IRQ */ 200void IRQ3(void) /* PA15: MAS demand IRQ */
201{ 201{
202 /* Begin with setting the IRQ to edge sensitive */ 202 /* Begin with setting the IRQ to edge sensitive */
diff --git a/firmware/target/sh/archos/timer-archos.c b/firmware/target/sh/archos/timer-archos.c
index 98a3afb4b6..251d68638a 100644
--- a/firmware/target/sh/archos/timer-archos.c
+++ b/firmware/target/sh/archos/timer-archos.c
@@ -23,7 +23,7 @@
23#include "system.h" 23#include "system.h"
24#include "timer.h" 24#include "timer.h"
25 25
26void IMIA4(void) __attribute__((interrupt_handler)); 26void IMIA4(void) __attribute__((interrupt_handler)) USED_ATTR;
27void IMIA4(void) 27void IMIA4(void)
28{ 28{
29 if (pfn_timer != NULL) 29 if (pfn_timer != NULL)