[rtems commit] bsps/arm: Use RTEMS_SECTION()

Sebastian Huber sebh at rtems.org
Thu Sep 17 06:38:16 UTC 2020


Module:    rtems
Branch:    master
Commit:    4b767bd343e6fca0cbef657478ee0633a7ca98d5
Changeset: http://git.rtems.org/rtems/commit/?id=4b767bd343e6fca0cbef657478ee0633a7ca98d5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Apr  3 09:53:53 2020 +0200

bsps/arm: Use RTEMS_SECTION()

---

 bsps/arm/include/bsp/linker-symbols.h | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/bsps/arm/include/bsp/linker-symbols.h b/bsps/arm/include/bsp/linker-symbols.h
index d743f67..ab39b80 100644
--- a/bsps/arm/include/bsp/linker-symbols.h
+++ b/bsps/arm/include/bsp/linker-symbols.h
@@ -23,6 +23,8 @@
 #ifndef LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H
 #define LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H
 
+#include <rtems/score/basedefs.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
@@ -123,19 +125,23 @@ LINKER_SYMBOL(bsp_start_vector_table_size)
 LINKER_SYMBOL(bsp_translation_table_base)
 LINKER_SYMBOL(bsp_translation_table_end)
 
-#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
+#define BSP_FAST_TEXT_SECTION \
+  RTEMS_SECTION(".bsp_fast_text")
 
-#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
+#define BSP_FAST_DATA_SECTION \
+  RTEMS_SECTION(".bsp_fast_data")
 
-#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
+#define BSP_NOCACHE_SECTION \
+  RTEMS_SECTION(".bsp_nocache")
 
 #define BSP_NOCACHE_SUBSECTION(subsection) \
-  __attribute__((section(".bsp_nocache." # subsection)))
+  RTEMS_SECTION(".bsp_nocache." # subsection)
 
-#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
+#define BSP_NOCACHENOLOAD_SECTION \
+  RTEMS_SECTION(".bsp_noload_nocache")
 
 #define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \
-  __attribute__((section(".bsp_noload_nocache." # subsection)))
+  RTEMS_SECTION(".bsp_noload_nocache." # subsection)
 
 /** @} */
 



More information about the vc mailing list