From 2dc009104677e6bdcd4866184282d07089b03f6a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 17 Oct 2009 20:41:37 +0000 Subject: 2009-10-17 Joel Sherrill * start/start.S, startup/bspstart.c: Fix warnings. --- c/src/lib/libbsp/powerpc/psim/ChangeLog | 4 ++++ c/src/lib/libbsp/powerpc/psim/start/start.S | 8 +------- c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 6 ++---- 3 files changed, 7 insertions(+), 11 deletions(-) (limited to 'c') diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog index 6438d2cc1f..04dcabe179 100644 --- a/c/src/lib/libbsp/powerpc/psim/ChangeLog +++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog @@ -1,3 +1,7 @@ +2009-10-17 Joel Sherrill + + * start/start.S, startup/bspstart.c: Fix warnings. + 2009-10-15 Ralf Corsépius * make/custom/psim.cfg: New (relocated from /make/custom). diff --git a/c/src/lib/libbsp/powerpc/psim/start/start.S b/c/src/lib/libbsp/powerpc/psim/start/start.S index 9dadef76a7..2e32543fb7 100644 --- a/c/src/lib/libbsp/powerpc/psim/start/start.S +++ b/c/src/lib/libbsp/powerpc/psim/start/start.S @@ -17,11 +17,6 @@ * $Id$ */ -#warning Call to boot_card has changed and needs checking. -#warning The call is "void boot_card(const char* cmdline);" -#warning You need to pass a NULL. -#warning Please check and remove these warnings. - #include #include #include @@ -110,9 +105,8 @@ _start: stwu sp,-56(sp) /* push another stack frame */ bl FUNC_NAME(__eabi) - li r3, 0 /* command line */ - /* Let her rip */ + li r3, 0 /* command line */ bl FUNC_NAME(boot_card) li 10,99 /* 0x63 */ diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c index febb49a9c6..2c0c74f090 100644 --- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c @@ -58,6 +58,8 @@ uint32_t BSP_mem_size = (uint32_t)RamSize; */ unsigned int BSP_time_base_divisor; +extern unsigned long __rtems_end[]; + void BSP_panic(char *s) { printk("%s PANIC %s\n",_RTEMS_version, s); @@ -75,10 +77,8 @@ void _BSP_Fatal_error(unsigned int v) * * This routine does the bulk of the system initialization. */ - void bsp_start( void ) { - extern unsigned long __rtems_end[]; uint32_t intrStackStart; uint32_t intrStackSize; @@ -106,8 +106,6 @@ void bsp_start( void ) intrStackStart = (uint32_t) __rtems_end; intrStackSize = rtems_configuration_get_interrupt_stack_size(); - BSP_mem_size = RamSize; - /* * Initialize default raw exception handlers. */ -- cgit v1.2.3