2010-04-27 Joel Sherrill <joel.sherrilL@OARcorp.com>

* startup/init5272.c: Remove warnings.
This commit is contained in:
Joel Sherrill
2010-04-27 21:54:57 +00:00
parent 874220e4ad
commit 71aade99ef
2 changed files with 9 additions and 19 deletions

View File

@@ -1,3 +1,7 @@
2010-04-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
* startup/init5272.c: Remove warnings.
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org> 2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/csb360.cfg: Remove RTEMS_BSP_FAMILY. * make/custom/csb360.cfg: Remove RTEMS_BSP_FAMILY.

View File

@@ -32,6 +32,11 @@
#include <bsp.h> #include <bsp.h>
#include <mcf5272/mcf5272.h> #include <mcf5272/mcf5272.h>
/* externs */
extern void clear_bss(void);
extern void start_csb360(void);
extern void INTERRUPT_VECTOR(void);
/* Set the pointers to the modules */ /* Set the pointers to the modules */
sim_regs_t *g_sim_regs = (void *) MCF5272_SIM_BASE(BSP_MBAR); sim_regs_t *g_sim_regs = (void *) MCF5272_SIM_BASE(BSP_MBAR);
intctrl_regs_t *g_intctrl_regs = (void *) MCF5272_INT_BASE(BSP_MBAR); intctrl_regs_t *g_intctrl_regs = (void *) MCF5272_INT_BASE(BSP_MBAR);
@@ -47,21 +52,6 @@ plic_regs_t *g_plic_regs = (void *) MCF5272_PLIC_BASE(BSP_MBAR);
enet_regs_t *g_enet_regs = (void *) MCF5272_ENET_BASE(BSP_MBAR); enet_regs_t *g_enet_regs = (void *) MCF5272_ENET_BASE(BSP_MBAR);
usb_regs_t *g_usb_regs = (void *) MCF5272_USB_BASE(BSP_MBAR); usb_regs_t *g_usb_regs = (void *) MCF5272_USB_BASE(BSP_MBAR);
#define m68k_set_cacr( _cacr ) \
asm volatile ( "movec %0,%%cacr\n\t" \
"nop\n" \
: : "d" (_cacr) )
#define m68k_set_acr0( _acr0 ) \
asm volatile ( "movec %0,%%acr0\n\t" \
"nop\n\t" \
: : "d" (_acr0) )
#define m68k_set_acr1( _acr1 ) \
asm volatile ( "movec %0,%%acr1\n\t" \
"nop\n\t" \
: : "d" (_acr1) )
#define m68k_set_srambar( _rambar0 ) \ #define m68k_set_srambar( _rambar0 ) \
asm volatile ( "movec %0,%%rambar0\n\t" \ asm volatile ( "movec %0,%%rambar0\n\t" \
"nop\n\t" \ "nop\n\t" \
@@ -96,9 +86,6 @@ usb_regs_t *g_usb_regs = (void *) MCF5272_USB_BASE(BSP_MBAR);
void void
init5272(void) init5272(void)
{ {
extern void clear_bss(void);
extern void start_csb360(void);
/* Invalidate the cache - WARNING: It won't complete for 64 clocks */ /* Invalidate the cache - WARNING: It won't complete for 64 clocks */
m68k_set_cacr(MCF5272_CACR_CINV); m68k_set_cacr(MCF5272_CACR_CINV);
@@ -126,7 +113,6 @@ init5272(void)
/* Copy the interrupt vector table to SRAM */ /* Copy the interrupt vector table to SRAM */
{ {
extern void INTERRUPT_VECTOR(void);
uint32_t *inttab = (uint32_t *)&INTERRUPT_VECTOR; uint32_t *inttab = (uint32_t *)&INTERRUPT_VECTOR;
uint32_t *intvec = (uint32_t *)BSP_RAMBAR; uint32_t *intvec = (uint32_t *)BSP_RAMBAR;
register int i; register int i;