summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-31 18:09:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-31 18:09:34 +0000
commit694c85ee13846668eec83631e57d997350df9394 (patch)
tree07ba466ebb8343ccfeac20068329b6d7bf390fe4 /c
parent2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-694c85ee13846668eec83631e57d997350df9394.tar.bz2
2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Add stub for U-Boot support. Hopefully someone more knowledgeable than I can provide a real address and length. * startup/uboot_support.c: New file.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/ChangeLog6
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/Makefile.am4
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c26
3 files changed, 35 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
index 1c45e03c48..54c9814f72 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
@@ -1,3 +1,9 @@
+2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * Makefile.am: Add stub for U-Boot support. Hopefully someone more
+ knowledgeable than I can provide a real address and length.
+ * startup/uboot_support.c: New file.
+
2008-07-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
* configure.ac, include/bsp.h, startup/bspstart.c,
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
index 60a01eb223..0783a9b726 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
@@ -51,7 +51,9 @@ startup_SOURCES = ../../shared/bspclean.c \
../../shared/gnatinstallhandler.c \
../shared/src/tictac.c \
startup/cpuinit.c \
- startup/bspstart.c
+ startup/bspstart.c \
+ startup/uboot_support.c \
+ ../shared/uboot_getenv.c
clock_SOURCES = ../shared/clock/clock.c
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c
new file mode 100644
index 0000000000..578490789a
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c
@@ -0,0 +1,26 @@
+/*
+ * This file contains variables which assist the shared
+ * U-Boot code.
+ *
+ * COPYRIGHT (c) 1989-2008.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <stdint.h>
+
+#include <bsp.h>
+
+#if defined(HAS_UBOOT)
+/* XXX TODO fill in with real information */
+/* Base address of U-Boot environment variables */
+const uint8_t *uboot_environment = (const char *)0x00000000;
+
+/* Length of area reserved for U-Boot environment variables */
+const size_t *uboot_environment_size = 0x10000;
+#endif