From 1b47871dd6b096b9fa895f4a90e6143dd60c2b02 Mon Sep 17 00:00:00 2001 From: Ralf Kirchner Date: Mon, 24 Jun 2013 17:15:42 +0200 Subject: [PATCH] bsp/psim: Fix declaration It declares a symbol defined in the linker command file. --- c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 4 ++-- 1 file 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;