5
Last change
on this file since e468ba5 was
e468ba5,
checked in by Sebastian Huber <sebastian.huber@…>, on 03/03/16 at 08:08:08
|
U-Boot: Flush data cache after bdinfo copy
|
-
Property mode set to
100644
|
File size:
747 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2010, 2016 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 | #include <string.h> |
---|
18 | #include <rtems.h> |
---|
19 | |
---|
20 | #ifndef U_BOOT_BOARD_INFO_DATA_SECTION |
---|
21 | #define U_BOOT_BOARD_INFO_DATA_SECTION |
---|
22 | #endif |
---|
23 | |
---|
24 | U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info; |
---|
25 | |
---|
26 | void bsp_uboot_copy_board_info(const bd_t *src) |
---|
27 | { |
---|
28 | bd_t *dst = &bsp_uboot_board_info; |
---|
29 | |
---|
30 | dst = memcpy(dst, src, sizeof(*dst)); |
---|
31 | rtems_cache_flush_multiple_data_lines(dst, sizeof(*dst)); |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.