summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c3
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c3
-rw-r--r--firmware/target/arm/ata-sd-pp.c3
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c5
-rw-r--r--firmware/target/arm/imx31/rolo_restart_firmware.S2
-rw-r--r--firmware/target/arm/s3c2440/sd-s3c2440.c3
-rw-r--r--firmware/target/arm/system-arm.c3
-rw-r--r--firmware/target/arm/tcc780x/sd-tcc780x.c3
-rw-r--r--firmware/target/coldfire/system-coldfire.c3
-rw-r--r--firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c3
10 files changed, 20 insertions, 11 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index d77c7133b6..ff41ef6215 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -32,6 +32,7 @@
32#include <stdio.h> 32#include <stdio.h>
33#include <stdlib.h> 33#include <stdlib.h>
34#include <string.h> 34#include <string.h>
35#include "gcc_extensions.h"
35#include "as3525.h" 36#include "as3525.h"
36#include "pl180.h" /* SD controller */ 37#include "pl180.h" /* SD controller */
37#include "pl081.h" /* DMA controller */ 38#include "pl081.h" /* DMA controller */
@@ -432,7 +433,7 @@ static int sd_init_card(const int drive)
432 return 0; 433 return 0;
433} 434}
434 435
435static void sd_thread(void) __attribute__((noreturn)); 436static void sd_thread(void) NORETURN_ATTR;
436static void sd_thread(void) 437static void sd_thread(void)
437{ 438{
438 struct queue_event ev; 439 struct queue_event ev;
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 1f8044a18b..e8a0719b11 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -23,6 +23,7 @@
23#include "config.h" /* for HAVE_MULTIVOLUME */ 23#include "config.h" /* for HAVE_MULTIVOLUME */
24#include "fat.h" 24#include "fat.h"
25#include "thread.h" 25#include "thread.h"
26#include "gcc_extensions.h"
26#include "led.h" 27#include "led.h"
27#include "sdmmc.h" 28#include "sdmmc.h"
28#include "system.h" 29#include "system.h"
@@ -616,7 +617,7 @@ static int sd_init_card(const int drive)
616 return 0; 617 return 0;
617} 618}
618 619
619static void sd_thread(void) __attribute__((noreturn)); 620static void sd_thread(void) NORETURN_ATTR;
620static void sd_thread(void) 621static void sd_thread(void)
621{ 622{
622 struct queue_event ev; 623 struct queue_event ev;
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c
index a2dcfe518f..914858e464 100644
--- a/firmware/target/arm/ata-sd-pp.c
+++ b/firmware/target/arm/ata-sd-pp.c
@@ -21,6 +21,7 @@
21#include "config.h" /* for HAVE_MULTIDRIVE */ 21#include "config.h" /* for HAVE_MULTIDRIVE */
22#include "fat.h" 22#include "fat.h"
23#include "sdmmc.h" 23#include "sdmmc.h"
24#include "gcc_extensions.h"
24#ifdef HAVE_HOTSWAP 25#ifdef HAVE_HOTSWAP
25#include "sd-pp-target.h" 26#include "sd-pp-target.h"
26#endif 27#endif
@@ -1105,7 +1106,7 @@ sd_write_error:
1105 } 1106 }
1106} 1107}
1107 1108
1108static void sd_thread(void) __attribute__((noreturn)); 1109static void sd_thread(void) NORETURN_ATTR;
1109static void sd_thread(void) 1110static void sd_thread(void)
1110{ 1111{
1111 struct queue_event ev; 1112 struct queue_event ev;
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 f458561731..e1894ce0ac 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c
+++ b/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c
@@ -21,6 +21,7 @@
21 21
22#include "kernel.h" 22#include "kernel.h"
23#include "system.h" 23#include "system.h"
24#include "gcc_extensions.h"
24#include "panic.h" 25#include "panic.h"
25#include "avic-imx31.h" 26#include "avic-imx31.h"
26#include "gpio-imx31.h" 27#include "gpio-imx31.h"
@@ -219,9 +220,9 @@ void system_prepare_fw_start(void)
219 220
220#ifndef BOOTLOADER 221#ifndef BOOTLOADER
221void rolo_restart_firmware(const unsigned char *source, unsigned char *dest, 222void rolo_restart_firmware(const unsigned char *source, unsigned char *dest,
222 int length) __attribute__((noreturn)); 223 int length) NORETURN_ATTR;
223 224
224void __attribute__((noreturn)) 225void NORETURN_ATTR
225rolo_restart(const unsigned char *source, unsigned char *dest, int length) 226rolo_restart(const unsigned char *source, unsigned char *dest, int length)
226{ 227{
227 /* Some housekeeping tasks must be performed for a safe changeover */ 228 /* Some housekeeping tasks must be performed for a safe changeover */
diff --git a/firmware/target/arm/imx31/rolo_restart_firmware.S b/firmware/target/arm/imx31/rolo_restart_firmware.S
index 5f24f653e0..45d37d14ef 100644
--- a/firmware/target/arm/imx31/rolo_restart_firmware.S
+++ b/firmware/target/arm/imx31/rolo_restart_firmware.S
@@ -25,7 +25,7 @@
25 25
26/**************************************************************************** 26/****************************************************************************
27 * void rolo_restart_firmware(const unsigned char* source, unsigned char* dest, 27 * void rolo_restart_firmware(const unsigned char* source, unsigned char* dest,
28 * int length) __attribute__((noreturn)); 28 * int length) NORETURN_ATTR;
29 */ 29 */
30 .section .text, "ax", %progbits 30 .section .text, "ax", %progbits
31 .align 2 31 .align 2
diff --git a/firmware/target/arm/s3c2440/sd-s3c2440.c b/firmware/target/arm/s3c2440/sd-s3c2440.c
index d42405db65..4a15835b67 100644
--- a/firmware/target/arm/s3c2440/sd-s3c2440.c
+++ b/firmware/target/arm/s3c2440/sd-s3c2440.c
@@ -24,6 +24,7 @@
24#include "sd.h" 24#include "sd.h"
25#include "system.h" 25#include "system.h"
26#include <string.h> 26#include <string.h>
27#include "gcc_extensions.h"
27#include "thread.h" 28#include "thread.h"
28#include "panic.h" 29#include "panic.h"
29 30
@@ -575,7 +576,7 @@ bool sd_removable(IF_MD_NONVOID(int card_no))
575#endif /* HAVE_HOTSWAP */ 576#endif /* HAVE_HOTSWAP */
576/*****************************************************************************/ 577/*****************************************************************************/
577 578
578static void sd_thread(void) __attribute__((noreturn)); 579static void sd_thread(void) NORETURN_ATTR;
579static void sd_thread(void) 580static void sd_thread(void)
580{ 581{
581 struct queue_event ev; 582 struct queue_event ev;
diff --git a/firmware/target/arm/system-arm.c b/firmware/target/arm/system-arm.c
index 01d2ba6e67..8d07347514 100644
--- a/firmware/target/arm/system-arm.c
+++ b/firmware/target/arm/system-arm.c
@@ -23,6 +23,7 @@
23#include <stdio.h> 23#include <stdio.h>
24#include "lcd.h" 24#include "lcd.h"
25#include "font.h" 25#include "font.h"
26#include "gcc_extensions.h"
26 27
27static const char* const uiename[] = { 28static const char* const uiename[] = {
28 "Undefined instruction", 29 "Undefined instruction",
@@ -34,7 +35,7 @@ static const char* const uiename[] = {
34/* Unexpected Interrupt or Exception handler. Currently only deals with 35/* Unexpected Interrupt or Exception handler. Currently only deals with
35 exceptions, but will deal with interrupts later. 36 exceptions, but will deal with interrupts later.
36 */ 37 */
37void __attribute__((noreturn)) UIE(unsigned int pc, unsigned int num) 38void NORETURN_ATTR UIE(unsigned int pc, unsigned int num)
38{ 39{
39#if LCD_DEPTH > 1 40#if LCD_DEPTH > 1
40 lcd_set_backdrop(NULL); 41 lcd_set_backdrop(NULL);
diff --git a/firmware/target/arm/tcc780x/sd-tcc780x.c b/firmware/target/arm/tcc780x/sd-tcc780x.c
index 88ccf187f0..7f17e457c9 100644
--- a/firmware/target/arm/tcc780x/sd-tcc780x.c
+++ b/firmware/target/arm/tcc780x/sd-tcc780x.c
@@ -22,6 +22,7 @@
22#include "sd.h" 22#include "sd.h"
23#include "system.h" 23#include "system.h"
24#include <string.h> 24#include <string.h>
25#include "gcc_extensions.h"
25#include "sdmmc.h" 26#include "sdmmc.h"
26#include "storage.h" 27#include "storage.h"
27#include "led.h" 28#include "led.h"
@@ -642,7 +643,7 @@ sd_write_error:
642 } 643 }
643} 644}
644 645
645static void sd_thread(void) __attribute__((noreturn)); 646static void sd_thread(void) NORETURN_ATTR;
646static void sd_thread(void) 647static void sd_thread(void)
647{ 648{
648 struct queue_event ev; 649 struct queue_event ev;
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c
index ba67daa3a6..75440a23bf 100644
--- a/firmware/target/coldfire/system-coldfire.c
+++ b/firmware/target/coldfire/system-coldfire.c
@@ -20,6 +20,7 @@
20 ****************************************************************************/ 20 ****************************************************************************/
21#include <stdio.h> 21#include <stdio.h>
22#include "config.h" 22#include "config.h"
23#include "gcc_extensions.h"
23#include "adc.h" 24#include "adc.h"
24#include "system.h" 25#include "system.h"
25#include "lcd.h" 26#include "lcd.h"
@@ -200,7 +201,7 @@ static void system_display_exception_info(unsigned long format,
200 reliable. The system restarts, but boot often fails with ata error -42. */ 201 reliable. The system restarts, but boot often fails with ata error -42. */
201} 202}
202 203
203static void UIE(void) __attribute__ ((noreturn)); 204static void UIE(void) NORETURN_ATTR;
204static void UIE(void) 205static void UIE(void)
205{ 206{
206 asm volatile("subq.l #4,%sp"); /* phony return address - never used */ 207 asm volatile("subq.l #4,%sp"); /* phony return address - never used */
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
index 8fdf7d0287..023835303b 100644
--- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
@@ -20,6 +20,7 @@
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#include "config.h" 22#include "config.h"
23#include "gcc_extensions.h"
23#include "jz4740.h" 24#include "jz4740.h"
24#include "ata.h" 25#include "ata.h"
25#include "ata_idle_notify.h" 26#include "ata_idle_notify.h"
@@ -47,7 +48,7 @@ static const char sd_thread_name[] = "ata/sd";
47static struct event_queue sd_queue; 48static struct event_queue sd_queue;
48static struct mutex sd_mtx; 49static struct mutex sd_mtx;
49static struct wakeup sd_wakeup; 50static struct wakeup sd_wakeup;
50static void sd_thread(void) __attribute__((noreturn)); 51static void sd_thread(void) NORETURN_ATTR;
51 52
52static int use_4bit; 53static int use_4bit;
53static int num_6; 54static int num_6;