summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-28 21:44:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-28 21:44:29 +0000
commit62577f9317f88c809ad67aed898b50ce3de2eebe (patch)
tree6aa54cf988ecdda2a548810b1359da5a28a15b3f /c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
parent2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-62577f9317f88c809ad67aed898b50ce3de2eebe.tar.bz2
2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/clock.c, 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/gen5200/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
index 380bf42110..cf423547aa 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
@@ -65,7 +65,7 @@
/* conditions. */
/* The mmu is unused at this time. */
/* */
-/* COPYRIGHT (c) 1989-1999. */
+/* COPYRIGHT (c) 1989-2007.
/* On-Line Applications Research Corporation (OAR). */
/* */
/* The license and distribution terms for this file may be */
@@ -132,6 +132,10 @@ rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
char *rtems_progname;
+/*
+ * Driver configuration parameters
+ */
+uint32_t bsp_clicks_per_usec;
/*
* Use the shared implementations of the following routines.
@@ -290,12 +294,13 @@ void bsp_start(void)
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
Cpu_table.predriver_hook = bsp_predriver_hook; /* init PCI / RTC ... */
Cpu_table.postdriver_hook = bsp_postdriver_hook;
- Cpu_table.clicks_per_usec = (IPB_CLOCK/1000000);
Cpu_table.exceptions_in_RAM = TRUE;
if( Cpu_table.interrupt_stack_size < 4*1024 )
Cpu_table.interrupt_stack_size = 4 * 1024;
+ bsp_clicks_per_usec = (IPB_CLOCK/1000000);
+
/*
* Install our own set of exception vectors
*/