2009-10-20 Till Straumann <strauman@slac.stanford.edu>

* startup/bspstart.c, startup/misc.c:
	Fixed compiler warnings by adding prototypes to function
	declarations and moving extern declarations to global scope.
This commit is contained in:
Till Straumann
2009-10-20 18:07:22 +00:00
parent 3ccd9de51b
commit c7880448d1
3 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c, startup/misc.c:
Fixed compiler warnings by adding prototypes to function
declarations and moving extern declarations to global scope.
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* start/start.S, startup/bspstart.c:

View File

@@ -48,7 +48,9 @@
#endif
extern unsigned long __rtems_end[];
extern void BSP_vme_config(void);
extern void BSP_vme_config(void);
extern void BSP_pciConfigDump_early( void );
extern unsigned ppc_exc_lock_std, ppc_exc_gpr3_std;
/*
* Copy Additional boot param passed by boot loader
@@ -156,7 +158,7 @@ _ccsr_wr32(uint32_t off, uint32_t val)
STATIC uint32_t
BSP_get_mem_size()
BSP_get_mem_size( void )
{
int i;
uint32_t cs_bnds, cs_config;
@@ -174,7 +176,7 @@ uint32_t v;
}
STATIC void
BSP_calc_freqs()
BSP_calc_freqs( void )
{
uint32_t porpllsr = _ccsr_rd32( 0xe0000 );
unsigned plat_ratio = (porpllsr >> (31-30)) & 0x1f;
@@ -365,7 +367,6 @@ VpdBufRec vpdData [] = {
#ifdef SHOW_MORE_INIT_SETTINGS
printk("Number of PCI buses found is : %d\n", pci_bus_count());
{
void BSP_pciConfigDump_early();
BSP_pciConfigDump_early();
}
#endif
@@ -413,7 +414,6 @@ VpdBufRec vpdData [] = {
}
if (0) {
extern unsigned ppc_exc_lock_std, ppc_exc_gpr3_std;
unsigned x;
asm volatile("mfivpr %0":"=r"(x));
printk("IVPR: 0x%08x\n",x);

View File

@@ -115,7 +115,7 @@ BSP_clrLEDs(uint8_t mask)
}
uint8_t
BSP_eeprom_write_protect()
BSP_eeprom_write_protect(void)
{
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
volatile uint8_t *r = BSP_MVME3100_SYS_CR;
@@ -124,7 +124,7 @@ volatile uint8_t *r = BSP_MVME3100_SYS_CR;
}
uint8_t
BSP_eeprom_write_enable()
BSP_eeprom_write_enable(void)
{
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
volatile uint8_t *r = BSP_MVME3100_SYS_CR;