From 694c85ee13846668eec83631e57d997350df9394 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 31 Jul 2008 18:09:34 +0000 Subject: 2008-07-31 Joel Sherrill * 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. --- c/src/lib/libbsp/powerpc/gen83xx/ChangeLog | 6 +++++ c/src/lib/libbsp/powerpc/gen83xx/Makefile.am | 4 +++- .../libbsp/powerpc/gen83xx/startup/uboot_support.c | 26 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 c/src/lib/libbsp/powerpc/gen83xx/startup/uboot_support.c 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 + + * 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 * 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 + +#include + +#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 -- cgit v1.2.3