diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2005-04-28 14:16:29 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2005-04-28 14:16:29 +0000 |
commit | bb41881ee3f8012a3117a2786de82a8c9c64caf1 (patch) | |
tree | d761cc03ec7462f4589b52cf716e80457f2490ef /c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c | |
parent | 2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com> (diff) | |
download | rtems-bb41881ee3f8012a3117a2786de82a8c9c64caf1.tar.bz2 |
2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com>
* score603e/Makefile.am, score603e/configure.ac,
score603e/console/console.c, score603e/include/bsp.h,
score603e/include/gen2.h, score603e/include/tm27.h,
score603e/startup/bspstart.c: Update score603e to new exception model
NOTE: These modifications have not been tested on hardware.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c index c880f7c3e9..c43fed2fc4 100644 --- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c @@ -20,6 +20,22 @@ #include <bsp.h> #include <rtems/libio.h> #include <rtems/libcsupport.h> +#include <rtems/bspIo.h> + +/* + * PCI Bus Frequency + */ +unsigned int BSP_bus_frequency; /* XXX - Set this based upon the Score board */ + +/* + * processor clock frequency + */ +unsigned int BSP_processor_frequency; /* XXX - Set this based upon the Score board */ + +/* + * Time base divisior (how many tick for 1 second). + */ +unsigned int BSP_time_base_divisor = 1000; /* XXX - Just a guess */ /* * The original table from the application and our copy of it with @@ -31,6 +47,18 @@ rtems_configuration_table BSP_Configuration; rtems_cpu_table Cpu_table; uint32_t bsp_isr_level; +void BSP_panic(char *s) +{ + printk("%s PANIC %s\n",_RTEMS_version, s); + __asm__ __volatile ("sc"); +} + +void _BSP_Fatal_error(unsigned int v) +{ + printk("%s PANIC ERROR %x\n",_RTEMS_version, v); + __asm__ __volatile ("sc"); +} + /* * Use the shared implementations of the following routines */ @@ -79,9 +107,11 @@ void initialize_PMC(); void bsp_predriver_hook(void) { init_RTC(); - +/* XXX - What Does this now ???? init_PCI(); initialize_universe(); +*/ + initialize_PCI_bridge (); #if (HAS_PMC_PSC8) @@ -201,6 +231,9 @@ void bsp_start( void ) (unsigned char *)&RAM_END - (unsigned char *) &end ); + BSP_processor_frequency = 266000000; + BSP_bus_frequency = 66000000; + /* * There are multiple ROM monitors available for this board. */ |