mvme3100/startup/bspstart.c: Remove myCpu variables and clean up

This commit is contained in:
Joel Sherrill
2014-10-13 15:49:46 -05:00
parent 3916cec2a6
commit becc686e19

View File

@@ -103,7 +103,6 @@ int i;
printk("\n");
}
BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
BSP_polling_getchar_function_type BSP_poll_char = NULL;
@@ -124,8 +123,11 @@ char *rtems_progname;
/*
* Use the shared implementations of the following routines
*/
char * save_boot_params(void* r3, void *r4, void* r5, char *additional_boot_options)
char * save_boot_params(
void* r3,
void *r4,
void* r5,
char *additional_boot_options)
{
strncpy(cmdline_buf, additional_boot_options, CMDLINE_BUF_SIZE);
@@ -153,10 +155,10 @@ _ccsr_wr32(uint32_t off, uint32_t val)
STATIC uint32_t
BSP_get_mem_size( void )
{
int i;
uint32_t cs_bnds, cs_config;
uint32_t memsz=0;
uint32_t v;
int i;
uint32_t cs_bnds, cs_config;
uint32_t memsz=0;
uint32_t v;
for ( cs_bnds = 0x2000, cs_config=0x2080, i=0; i<4; i++, cs_bnds+=8, cs_config+=4 ) {
if ( CS_CONFIG_CS_EN & _ccsr_rd32( cs_config ) ) {
@@ -171,9 +173,9 @@ uint32_t v;
STATIC void
BSP_calc_freqs( void )
{
uint32_t porpllsr = _ccsr_rd32( 0xe0000 );
unsigned plat_ratio = (porpllsr >> (31-30)) & 0x1f;
unsigned e500_ratio = (porpllsr >> (31-15)) & 0x3f;
uint32_t porpllsr = _ccsr_rd32( 0xe0000 );
unsigned plat_ratio = (porpllsr >> (31-30)) & 0x1f;
unsigned e500_ratio = (porpllsr >> (31-15)) & 0x3f;
switch ( plat_ratio ) {
case 2: case 3: case 4: case 5: case 6:
@@ -218,14 +220,14 @@ SPR_RW(HID1)
void bsp_start( void )
{
unsigned char *stack;
uintptr_t intrStackStart;
uintptr_t intrStackSize;
char *chpt;
ppc_cpu_id_t myCpu;
ppc_cpu_revision_t myCpuRevision;
int i;
E500_tlb_va_cache_t *tlb;
unsigned char *stack;
uintptr_t intrStackStart;
uintptr_t intrStackSize;
char *chpt;
int i;
ppc_cpu_id_t myCpu;
ppc_cpu_revision_t myCpuRevision;
E500_tlb_va_cache_t *tlb;
VpdBufRec vpdData [] = {
{ key: ProductIdent, instance: 0, buf: BSP_productIdent, buflen: sizeof(BSP_productIdent) - 1 },
@@ -434,5 +436,4 @@ VpdBufRec vpdData [] = {
#ifdef SHOW_MORE_INIT_SETTINGS
printk("Exit from bspstart\n");
#endif
}