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/imx31 | |
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/imx31')
-rw-r--r-- | firmware/target/arm/imx31/dvfs_dptc-imx31.c | 3 |
1 files changed, 2 insertions, 1 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 */ |
184 | static void __attribute__((used)) dvfs_int(void) | 185 | static 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; |