5
Last change
on this file since f831eff was
06251bb,
checked in by Sebastian Huber <sebastian.huber@…>, on 12/22/14 at 06:26:19
|
bsps/u-boot: Add optional text and data sections
|
-
Property mode set to
100644
|
File size:
866 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2010-2014 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <bsp/u-boot.h> |
---|
16 | |
---|
17 | #ifndef U_BOOT_BOARD_INFO_TEXT_SECTION |
---|
18 | #define U_BOOT_BOARD_INFO_TEXT_SECTION |
---|
19 | #endif |
---|
20 | |
---|
21 | #ifndef U_BOOT_BOARD_INFO_DATA_SECTION |
---|
22 | #define U_BOOT_BOARD_INFO_DATA_SECTION |
---|
23 | #endif |
---|
24 | |
---|
25 | U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info; |
---|
26 | |
---|
27 | U_BOOT_BOARD_INFO_TEXT_SECTION void bsp_uboot_copy_board_info(const bd_t *src) |
---|
28 | { |
---|
29 | const int *s = (const int *) src; |
---|
30 | int *d = (int *) &bsp_uboot_board_info; |
---|
31 | int i = 0; |
---|
32 | int n = sizeof(*src) / sizeof(int); |
---|
33 | |
---|
34 | for (i = 0; i < n; ++i) { |
---|
35 | d [i] = s [i]; |
---|
36 | } |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.