blob: cc88a719fdc429eb9839b0ba0ca26395e9ffb0b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* 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.
*/
#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];
}
}
|