diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-12-30 12:58:39 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-12-30 12:58:39 +0000 |
commit | 9812d517a13a5b5af246b55d416aa8ca04471b57 (patch) | |
tree | 6549d59b8c40c57247264ecd385d51baf59d7cb0 /c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c | |
parent | 2010-12-29 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-9812d517a13a5b5af246b55d416aa8ca04471b57.tar.bz2 |
2010-12-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/bspgetworkarea.c: Include <bsp/u-boot.h> if necessary.
* shared/include/u-boot.h, shared/src/bsp-uboot-board-info.c: New
files.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c b/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c new file mode 100644 index 0000000000..65c2605213 --- /dev/null +++ b/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2010 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Obere Lagerstr. 30 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * 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 <bsp/u-boot.h> + +bd_t bsp_uboot_board_info; + +void bsp_uboot_copy_board_info(const bd_t *src) +{ + const int *s = (const int *) src; + int *d = (int *) &bsp_uboot_board_info; + int i = 0; + int n = sizeof(*src) / sizeof(int); + + for (i = 0; i < n; ++i) { + d [i] = s [i]; + } +} |