diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-28 21:44:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-28 21:44:49 +0000 |
commit | 28f398e717b3d6ce14ddad973fed7e4ea76cceee (patch) | |
tree | 0d60346d7ce89b19acae14c3f8140cf320f72858 /c/src/lib/libbsp/powerpc/shared/startup/bspstart.c | |
parent | 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-28f398e717b3d6ce14ddad973fed7e4ea76cceee.tar.bz2 |
2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/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 '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/startup/bspstart.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c index 14daa68c4d..3ab7b30529 100644 --- a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c @@ -4,7 +4,7 @@ * The generic CPU dependent initialization has been performed * before this routine is invoked. * - * COPYRIGHT (c) 1989-1998. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -54,6 +54,12 @@ extern void ShowBATS();` #endif /* + * Driver configuration parameters + */ +uint32_t bsp_clicks_per_usec; + +/* +/* * Copy of residuals passed by firmware */ RESIDUAL residualCopy; @@ -384,7 +390,8 @@ void bsp_start( void ) Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ Cpu_table.postdriver_hook = bsp_postdriver_hook; Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; - Cpu_table.clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); + + bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); #ifdef SHOW_MORE_INIT_SETTINGS printk("BSP_Configuration.work_space_size = %x\n", |