source: rtems/bsps/shared/start/bsp-uboot-board-info.c @ 762fa62

5
Last change on this file since 762fa62 was 9d44ae7, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 13, 2018 at 7:14:36 AM

bsps: Move bsp-uboot-board-info.c to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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
24U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info;
25
26void 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.