[rtems commit] bsps/u-boot: Add optional text and data sections
Sebastian Huber
sebh at rtems.org
Fri Jan 9 13:09:38 UTC 2015
Module: rtems
Branch: master
Commit: 06251bb4152c9208feadac34d8a9746272cf2e14
Changeset: http://git.rtems.org/rtems/commit/?id=06251bb4152c9208feadac34d8a9746272cf2e14
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Dec 22 07:26:19 2014 +0100
bsps/u-boot: Add optional text and data sections
---
c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c b/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c
index 5d2564f..10a99c2 100644
--- a/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c
+++ b/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c
@@ -1,8 +1,8 @@
/*
- * Copyright (c) 2010 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2010-2014 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
- * Obere Lagerstr. 30
+ * Dornierstr. 4
* 82178 Puchheim
* Germany
* <rtems at embedded-brains.de>
@@ -14,9 +14,17 @@
#include <bsp/u-boot.h>
-bd_t bsp_uboot_board_info;
+#ifndef U_BOOT_BOARD_INFO_TEXT_SECTION
+#define U_BOOT_BOARD_INFO_TEXT_SECTION
+#endif
-void bsp_uboot_copy_board_info(const bd_t *src)
+#ifndef U_BOOT_BOARD_INFO_DATA_SECTION
+#define U_BOOT_BOARD_INFO_DATA_SECTION
+#endif
+
+U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info;
+
+U_BOOT_BOARD_INFO_TEXT_SECTION void bsp_uboot_copy_board_info(const bd_t *src)
{
const int *s = (const int *) src;
int *d = (int *) &bsp_uboot_board_info;
More information about the vc
mailing list