From 62577f9317f88c809ad67aed898b50ce3de2eebe Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 28 Nov 2007 21:44:29 +0000 Subject: 2007-11-28 Joel Sherrill * 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. --- c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c') 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 */ -- cgit v1.2.3