source: rtems/bsps/shared/start/bsp-uboot-board-info.c @ 9bf813c5

Last change on this file since 9bf813c5 was 9bf813c5, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:43

bsps/shared/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 639 bytes
Line 
1/*
2 * Copyright (c) 2010, 2016 embedded brains GmbH.  All rights reserved.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9#include <bsp/u-boot.h>
10
11#include <string.h>
12#include <rtems.h>
13
14#ifndef U_BOOT_BOARD_INFO_DATA_SECTION
15#define U_BOOT_BOARD_INFO_DATA_SECTION
16#endif
17
18U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info;
19
20void bsp_uboot_copy_board_info(const bd_t *src)
21{
22  bd_t *dst = &bsp_uboot_board_info;
23
24  dst = memcpy(dst, src, sizeof(*dst));
25  rtems_cache_flush_multiple_data_lines(dst, sizeof(*dst));
26}
Note: See TracBrowser for help on using the repository browser.