summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
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/gen83xx/startup/bspstart.c
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/gen83xx/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
index 43056d1855..336288ae70 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
@@ -62,6 +62,11 @@ unsigned int BSP_bus_frequency = BSP_CSB_CLK_FRQ;
unsigned int BSP_time_base_divisor = 4000; /* 4 bus clicks per TB click */
/*
+ * Driver configuration parameters
+ */
+uint32_t bsp_clicks_per_usec;
+
+/*
* Use the shared implementations of the following routines.
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
* rtems/c/src/lib/libbsp/shared/bsplibc.c.
@@ -205,15 +210,16 @@ 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 = (BSP_CSB_CLK_FRQ/1000000);
Cpu_table.exceptions_in_RAM = TRUE;
if( Cpu_table.interrupt_stack_size < 4*1024 )
Cpu_table.interrupt_stack_size = 4 * 1024;
- /*
- * Install our own set of exception vectors
- */
+ bsp_clicks_per_usec = (BSP_CSB_CLK_FRQ/1000000);
+
+ /*
+ * Install our own set of exception vectors
+ */
initialize_exceptions();