diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/system.h | 6 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index def3122205..172fe05b6e 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -31,7 +31,13 @@ extern void system_reboot (void); | |||
31 | /* Called from any UIE handler and panicf - wait for a key and return | 31 | /* Called from any UIE handler and panicf - wait for a key and return |
32 | * to reboot system. */ | 32 | * to reboot system. */ |
33 | extern void system_exception_wait(void); | 33 | extern void system_exception_wait(void); |
34 | |||
35 | #if NUM_CORES == 1 | ||
36 | extern void system_init(void) INIT_ATTR; | ||
37 | #else | ||
38 | /* TODO: probably safe to use INIT_ATTR on multicore but this needs checking */ | ||
34 | extern void system_init(void); | 39 | extern void system_init(void); |
40 | #endif | ||
35 | 41 | ||
36 | extern long cpu_frequency; | 42 | extern long cpu_frequency; |
37 | 43 | ||
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c index d7ebeea024..22873bfef0 100644 --- a/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c | |||
@@ -199,7 +199,7 @@ void system_exception_wait(void) | |||
199 | system_halt(); | 199 | system_halt(); |
200 | } | 200 | } |
201 | 201 | ||
202 | void INIT_ATTR system_init(void) | 202 | void system_init(void) |
203 | { | 203 | { |
204 | static const enum IMX31_CG_LIST disable_clocks[] INITDATA_ATTR = | 204 | static const enum IMX31_CG_LIST disable_clocks[] INITDATA_ATTR = |
205 | { | 205 | { |