2008-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am, include/bsp.h: Add bsp_uboot_getenv() to obtain U-Boot
	environment variables.
	* startup/uboot_support.c: New file.
This commit is contained in:
Joel Sherrill
2008-07-01 19:12:48 +00:00
parent 17049c39d0
commit 6e2fcea0e6
4 changed files with 40 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2008-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, include/bsp.h: Add bsp_uboot_getenv() to obtain U-Boot
environment variables.
* startup/uboot_support.c: New file.
2008-06-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* irq/irq.c: Add units.

View File

@@ -85,7 +85,7 @@ startup_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
../../shared/sbrk.c ../shared/uboot_dump_bdinfo.c \
../../shared/gnatinstallhandler.c startup/cpuinit.c \
../shared/showbats.c
../shared/showbats.c startup/uboot_support.c ../shared/uboot_getenv.c
vectors_SOURCES = vectors/vectors_init.c vectors/vectors.h \
vectors/vectors.S

View File

@@ -261,6 +261,14 @@ Thread _Thread_Idle_body(uint32_t ignored);
/* BSP specific IRQ Benchmarking support */
void BSP_IRQ_Benchmarking_Reset(void);
void BSP_IRQ_Benchmarking_Report(void);
#if defined(HAS_UBOOT)
/* Routine to obtain U-Boot environment variables */
const char *bsp_uboot_getenv(
const char *name
);
#endif
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,25 @@
/*
* 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)
/* Base address of U-Boot environment variables */
const uint8_t *uboot_environment = (const char *)0xfff40000;
/* Length of area reserved for U-Boot environment variables */
const size_t *uboot_environment_size = 0x10000;
#endif