summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-17 20:41:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-17 20:41:37 +0000
commit2dc009104677e6bdcd4866184282d07089b03f6a (patch)
tree27b4b4cc11348e0157c44b294b721373f75290af /c
parent2009-10-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-2dc009104677e6bdcd4866184282d07089b03f6a.tar.bz2
2009-10-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* start/start.S, startup/bspstart.c: Fix warnings.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/ChangeLog4
-rw-r--r--c/src/lib/libbsp/powerpc/psim/start/start.S8
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c6
3 files changed, 7 insertions, 11 deletions
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 <joel.sherrill@oarcorp.com>
+
+ * start/start.S, startup/bspstart.c: Fix warnings.
+
2009-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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 <rtems/asm.h>
#include <rtems/score/cpu.h>
#include <libcpu/io.h>
@@ -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.
*/