summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-17 13:24:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-17 13:24:47 +0000
commit169480b36a109cce45846a95e29f4120ad6a0375 (patch)
tree10b70f9008f1e081721036363804352d3ed23749 /c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
parentFix formatting. (diff)
downloadrtems-169480b36a109cce45846a95e29f4120ad6a0375.tar.bz2
2011-04-10 Kate Feng <feng@bnl.gov>
PR 1786/bsps * Makefile.am: Add support for Altivec. * startup/bspstart.c, Makefile.am: Use shared/startup/zerobss.c instead. * make/custom/mvme5500.cfg: Change CPU_CFLAGS to "-mcpu=7450 -mtune=7450 -Dmpc7455" * irq/BSP_irq.c, pci/detect_host_bridge.c, pci.c, pcifinddevice.c: Remove warnings. * vme/VMEConfig.h, include/bsp.h: use VME shared IRQ handlers. * network/if_100MHz/GT64260eth.c: Recycle the Rx mbuf if there is any Rx error.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
index c21e805fbc..0e6c4cde1f 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
@@ -52,12 +52,8 @@
#define CONF_VPD
*/
-/* there is no public Workspace_Free() variant :-( */
-#include <rtems/score/wkspace.h>
-
extern uint32_t probeMemoryEnd(void); /* from shared/startup/probeMemoryEnd.c */
-
BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
BSP_polling_getchar_function_type BSP_poll_char = NULL;
@@ -71,13 +67,8 @@ extern void BSP_vme_config(void);
extern unsigned char ReadConfVPD_buff(int offset);
-extern unsigned long __bss_start[], __SBSS_START__[], __SBSS_END__[];
-extern unsigned long __SBSS2_START__[], __SBSS2_END__[];
-
uint32_t bsp_clicks_per_usec;
-SPR_RW(SPRG1)
-
typedef struct CmdLineRec_ {
unsigned long size;
char buf[0];
@@ -134,25 +125,6 @@ void _BSP_Fatal_error(unsigned int v)
__asm__ __volatile ("sc");
}
-void zero_bss(void)
-{
- memset(
- __SBSS_START__,
- 0,
- ((unsigned) __SBSS_END__) - ((unsigned)__SBSS_START__)
- );
- memset(
- __SBSS2_START__,
- 0,
- ((unsigned) __SBSS2_END__) - ((unsigned)__SBSS2_START__)
- );
- memset(
- __bss_start,
- 0,
- ((unsigned) __rtems_end) - ((unsigned)__bss_start)
- );
-}
-
/* NOTE: we cannot simply malloc the commandline string;
* save_boot_params() is called during a very early stage when
* libc/malloc etc. are not yet initialized!
@@ -294,6 +266,7 @@ void bsp_start( void )
printk("-----------------------------------------\n");
BSP_mem_size = probeMemoryEnd();
+
/* TODO: calculate the BSP_bus_frequency using the REF_CLK bit
* of System Status register
*/
@@ -303,7 +276,6 @@ void bsp_start( void )
/* P94 : 7455 clocks the TB/DECR at 1/4 of the system bus clock frequency */
BSP_time_base_divisor = 4000;
-
/* Maybe not setup yet becuase of the warning message */
/* Allocate and set up the page table mappings
* This is only available on >604 CPUs.