summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-10-20 18:00:47 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-10-20 18:00:47 +0000
commit3ccd9de51b6a594793a683dc98fdaa32b945c140 (patch)
treef76e889963c62bd765025ceae98f640bc02483df /c
parent2009-10-20 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-3ccd9de51b6a594793a683dc98fdaa32b945c140.tar.bz2
2009-10-20 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: let 'save_boot_params()' return a pointer to the commandline saved by the BSP which is NULL in this case. This pointer could be passed on to 'boot_card()' as it is done by other BSPs. This 'start/start.S' file however, passes a NULL pointer directly to boot_card() (w/o ever calling save_boot_params()).
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/ChangeLog9
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c4
2 files changed, 12 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
index d77ad1745f..e066b62b8d 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
@@ -1,3 +1,12 @@
+2009-10-20 Till Straumann <strauman@slac.stanford.edu>
+
+ * startup/bspstart.c:
+ let 'save_boot_params()' return a pointer to the commandline
+ saved by the BSP which is NULL in this case. This pointer could
+ be passed on to 'boot_card()' as it is done by other BSPs.
+ This 'start/start.S' file however, passes a NULL pointer
+ directly to boot_card() (w/o ever calling save_boot_params()).
+
2009-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Don't add -ansi -fasm to CFLAGS.
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index a2fcfbac58..3c28bba449 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -168,13 +168,15 @@ void zero_bss(void)
memset(__bss_start, 0, ((unsigned) __rtems_end) - ((unsigned)__bss_start));
}
-void save_boot_params(RESIDUAL* r3, void *r4, void* r5, char *additional_boot_options)
+char * save_boot_params(RESIDUAL* r3, void *r4, void* r5, char *additional_boot_options)
{
#if 0
residualCopy = *r3;
strncpy(loaderParam, additional_boot_options, MAX_LOADER_ADD_PARM);
loaderParam[MAX_LOADER_ADD_PARM - 1] ='\0';
+ return loaderParam;
#endif
+ return 0;
}
unsigned int EUMBBAR;