summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx31/dvfs_dptc-imx31.c3
-rw-r--r--firmware/target/arm/s3c2440/system-s3c2440.c3
-rw-r--r--firmware/target/arm/thread-arm.c4
-rw-r--r--firmware/target/arm/thread-pp.c4
4 files changed, 10 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/dvfs_dptc-imx31.c b/firmware/target/arm/imx31/dvfs_dptc-imx31.c
index e8dee17416..02955a5aa4 100644
--- a/firmware/target/arm/imx31/dvfs_dptc-imx31.c
+++ b/firmware/target/arm/imx31/dvfs_dptc-imx31.c
@@ -29,6 +29,7 @@
29#include "avic-imx31.h" 29#include "avic-imx31.h"
30#include "dvfs_dptc-imx31.h" 30#include "dvfs_dptc-imx31.h"
31#include "dvfs_dptc_tables-target.h" 31#include "dvfs_dptc_tables-target.h"
32#include "gcc_extensions.h"
32 33
33/* Most of the code in here is based upon the Linux BSP provided by Freescale 34/* Most of the code in here is based upon the Linux BSP provided by Freescale
34 * Copyright 2004-2008 Freescale Semiconductor, Inc. All Rights Reserved. */ 35 * Copyright 2004-2008 Freescale Semiconductor, Inc. All Rights Reserved. */
@@ -181,7 +182,7 @@ static void set_current_dvfs_level(unsigned int level)
181} 182}
182 183
183/* DVFS Interrupt handler */ 184/* DVFS Interrupt handler */
184static void __attribute__((used)) dvfs_int(void) 185static void USED_ATTR dvfs_int(void)
185{ 186{
186 unsigned long pmcr0 = CCM_PMCR0; 187 unsigned long pmcr0 = CCM_PMCR0;
187 unsigned long fsvai = pmcr0 & CCM_PMCR0_FSVAI; 188 unsigned long fsvai = pmcr0 & CCM_PMCR0_FSVAI;
diff --git a/firmware/target/arm/s3c2440/system-s3c2440.c b/firmware/target/arm/s3c2440/system-s3c2440.c
index 577b46966c..1e5613f7b6 100644
--- a/firmware/target/arm/s3c2440/system-s3c2440.c
+++ b/firmware/target/arm/s3c2440/system-s3c2440.c
@@ -23,6 +23,7 @@
23#include "panic.h" 23#include "panic.h"
24#include "mmu-arm.h" 24#include "mmu-arm.h"
25#include "cpu.h" 25#include "cpu.h"
26#include "gcc_extensions.h"
26 27
27#define default_interrupt(name) \ 28#define default_interrupt(name) \
28 extern __attribute__((weak,alias("UIRQ"))) void name (void) 29 extern __attribute__((weak,alias("UIRQ"))) void name (void)
@@ -60,7 +61,7 @@ default_interrupt(SPI1);
60default_interrupt(RTC); 61default_interrupt(RTC);
61default_interrupt(ADC); 62default_interrupt(ADC);
62 63
63static void (* const irqvector[32])(void) __attribute__((__used__)) = 64static void (* const irqvector[32])(void) USED_ATTR =
64{ 65{
65 EINT0, EINT1, EINT2, EINT3, 66 EINT0, EINT1, EINT2, EINT3,
66 EINT4_7, EINT8_23, CAM, nBATT_FLT, TICK, WDT_AC97, 67 EINT4_7, EINT8_23, CAM, nBATT_FLT, TICK, WDT_AC97,
diff --git a/firmware/target/arm/thread-arm.c b/firmware/target/arm/thread-arm.c
index 60bbefa6b6..302b1592d8 100644
--- a/firmware/target/arm/thread-arm.c
+++ b/firmware/target/arm/thread-arm.c
@@ -21,11 +21,13 @@
21 * 21 *
22 ****************************************************************************/ 22 ****************************************************************************/
23 23
24#include "gcc_extensions.h"
25
24/*--------------------------------------------------------------------------- 26/*---------------------------------------------------------------------------
25 * Start the thread running and terminate it if it returns 27 * Start the thread running and terminate it if it returns
26 *--------------------------------------------------------------------------- 28 *---------------------------------------------------------------------------
27 */ 29 */
28static void __attribute__((naked,used)) start_thread(void) 30static void __attribute__((naked)) USED_ATTR start_thread(void)
29{ 31{
30 /* r0 = context */ 32 /* r0 = context */
31 asm volatile ( 33 asm volatile (
diff --git a/firmware/target/arm/thread-pp.c b/firmware/target/arm/thread-pp.c
index 3eb7238a25..5e834bc6ad 100644
--- a/firmware/target/arm/thread-pp.c
+++ b/firmware/target/arm/thread-pp.c
@@ -21,6 +21,8 @@
21 * 21 *
22 ****************************************************************************/ 22 ****************************************************************************/
23 23
24#include "gcc_extensions.h"
25
24#if defined(MAX_PHYS_SECTOR_SIZE) && MEMORYSIZE == 64 26#if defined(MAX_PHYS_SECTOR_SIZE) && MEMORYSIZE == 64
25/* Support a special workaround object for large-sector disks */ 27/* Support a special workaround object for large-sector disks */
26#define IF_NO_SKIP_YIELD(...) __VA_ARGS__ 28#define IF_NO_SKIP_YIELD(...) __VA_ARGS__
@@ -546,7 +548,7 @@ void core_wake(unsigned int othercore)
546#endif /* CPU_PPxxxx */ 548#endif /* CPU_PPxxxx */
547 549
548/* Keep constant pool in range of inline ASM */ 550/* Keep constant pool in range of inline ASM */
549static void __attribute__((naked, used)) dump_ltorg(void) 551static void __attribute__((naked)) USED_ATTR dump_ltorg(void)
550{ 552{
551 asm volatile (".ltorg"); 553 asm volatile (".ltorg");
552} 554}