forked from Imagelibrary/rtems
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:
@@ -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>
|
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
* start/start.S, startup/bspstart.c:
|
* start/start.S, startup/bspstart.c:
|
||||||
|
|||||||
@@ -49,6 +49,8 @@
|
|||||||
|
|
||||||
extern unsigned long __rtems_end[];
|
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
|
* Copy Additional boot param passed by boot loader
|
||||||
@@ -156,7 +158,7 @@ _ccsr_wr32(uint32_t off, uint32_t val)
|
|||||||
|
|
||||||
|
|
||||||
STATIC uint32_t
|
STATIC uint32_t
|
||||||
BSP_get_mem_size()
|
BSP_get_mem_size( void )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32_t cs_bnds, cs_config;
|
uint32_t cs_bnds, cs_config;
|
||||||
@@ -174,7 +176,7 @@ uint32_t v;
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC void
|
STATIC void
|
||||||
BSP_calc_freqs()
|
BSP_calc_freqs( void )
|
||||||
{
|
{
|
||||||
uint32_t porpllsr = _ccsr_rd32( 0xe0000 );
|
uint32_t porpllsr = _ccsr_rd32( 0xe0000 );
|
||||||
unsigned plat_ratio = (porpllsr >> (31-30)) & 0x1f;
|
unsigned plat_ratio = (porpllsr >> (31-30)) & 0x1f;
|
||||||
@@ -365,7 +367,6 @@ VpdBufRec vpdData [] = {
|
|||||||
#ifdef SHOW_MORE_INIT_SETTINGS
|
#ifdef SHOW_MORE_INIT_SETTINGS
|
||||||
printk("Number of PCI buses found is : %d\n", pci_bus_count());
|
printk("Number of PCI buses found is : %d\n", pci_bus_count());
|
||||||
{
|
{
|
||||||
void BSP_pciConfigDump_early();
|
|
||||||
BSP_pciConfigDump_early();
|
BSP_pciConfigDump_early();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -413,7 +414,6 @@ VpdBufRec vpdData [] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
extern unsigned ppc_exc_lock_std, ppc_exc_gpr3_std;
|
|
||||||
unsigned x;
|
unsigned x;
|
||||||
asm volatile("mfivpr %0":"=r"(x));
|
asm volatile("mfivpr %0":"=r"(x));
|
||||||
printk("IVPR: 0x%08x\n",x);
|
printk("IVPR: 0x%08x\n",x);
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ BSP_clrLEDs(uint8_t mask)
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
uint8_t
|
||||||
BSP_eeprom_write_protect()
|
BSP_eeprom_write_protect(void)
|
||||||
{
|
{
|
||||||
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
|
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
|
||||||
volatile uint8_t *r = BSP_MVME3100_SYS_CR;
|
volatile uint8_t *r = BSP_MVME3100_SYS_CR;
|
||||||
@@ -124,7 +124,7 @@ volatile uint8_t *r = BSP_MVME3100_SYS_CR;
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
uint8_t
|
||||||
BSP_eeprom_write_enable()
|
BSP_eeprom_write_enable(void)
|
||||||
{
|
{
|
||||||
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
|
uint8_t m = BSP_MVME3100_SYS_CR_EEPROM_WP;
|
||||||
volatile uint8_t *r = BSP_MVME3100_SYS_CR;
|
volatile uint8_t *r = BSP_MVME3100_SYS_CR;
|
||||||
|
|||||||
Reference in New Issue
Block a user