diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
commit | 59e71ee80c65426b2f569cc4c60936053cc9caa5 (patch) | |
tree | 0b4c61bbd10fbb1fd3c00a877f4a9df6338496e9 /firmware/target/arm/s3c2440/system-s3c2440.c | |
parent | 9653ae364cc8b558c846d3391e3ef9eb843d2385 (diff) | |
download | rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.gz rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.zip |
Introduce USED_ATTR wrapper for __attribute__((used)).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/system-s3c2440.c')
-rw-r--r-- | firmware/target/arm/s3c2440/system-s3c2440.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
60 | default_interrupt(RTC); | 61 | default_interrupt(RTC); |
61 | default_interrupt(ADC); | 62 | default_interrupt(ADC); |
62 | 63 | ||
63 | static void (* const irqvector[32])(void) __attribute__((__used__)) = | 64 | static 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, |