summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Kirchner <ralf.kirchner@embedded-brains.de>2013-06-24 17:15:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-05 16:01:02 +0200
commit1b47871dd6b096b9fa895f4a90e6143dd60c2b02 (patch)
treedf237eee976935e677f906b744a2093b8918e703 /c
parentbsps/arm: Add PL050 support (diff)
downloadrtems-1b47871dd6b096b9fa895f4a90e6143dd60c2b02.tar.bz2
bsp/psim: Fix declaration
It declares a symbol defined in the linker command file.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
index c58915c7c3..90e9bff097 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
@@ -35,7 +35,7 @@ SPR_RW(SPRG1)
* per cycle at 100 Mhz. Whether this is a good guess or not
* is anyone's guess.
*/
-extern int PSIM_INSTRUCTIONS_PER_MICROSECOND;
+extern int PSIM_INSTRUCTIONS_PER_MICROSECOND[];
/*
* PCI Bus Frequency
@@ -89,7 +89,7 @@ void bsp_start( void )
/*
* initialize the device driver parameters
*/
- BSP_bus_frequency = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND;
+ BSP_bus_frequency = (unsigned int)PSIM_INSTRUCTIONS_PER_MICROSECOND;
bsp_clicks_per_usec = BSP_bus_frequency;
BSP_time_base_divisor = 1;