summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-28 21:44:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-28 21:44:46 +0000
commit07e9642ce0a7a9123dbcd476d2761e7b0f241f38 (patch)
tree85ac803ec0fd5230128da7675d702f70c95757a6 /c/src/lib/libbsp/powerpc/score603e/startup
parent2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-07e9642ce0a7a9123dbcd476d2761e7b0f241f38.tar.bz2
2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Eliminate PowerPC specific elements from the CPU Table. They have been replaced with variables named bsp_XXX as needed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/startup')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index 0916523a74..66fa562a88 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -5,7 +5,7 @@
* The generic CPU dependent initialization has been performed
* before any of these are invoked.
*
- * COPYRIGHT (c) 1989-1997.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may in
@@ -38,6 +38,11 @@ unsigned int BSP_processor_frequency; /* XXX - Set this based upon the Score boa
unsigned int BSP_time_base_divisor = 1000; /* XXX - Just a guess */
/*
+ * Driver configuration parameters
+ */
+uint32_t bsp_clicks_per_usec;
+
+/*
* The original table from the application and our copy of it with
* some changes.
*/
@@ -311,10 +316,11 @@ void bsp_start( void )
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.predriver_hook = bsp_predriver_hook; /* Init vectors */
Cpu_table.postdriver_hook = SCORE603e_bsp_postdriver_hook;
- Cpu_table.clicks_per_usec = 66 / 4; /* XXX get from linkcmds */
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
Cpu_table.idle_task_stack_size = (3 * STACK_MINIMUM_SIZE);
+ bsp_clicks_per_usec = 66 / 4; /* XXX get from linkcmds */
+
#if ( PPC_USE_DATA_CACHE )
instruction_cache_enable ();
data_cache_enable ();