summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-03 09:53:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 08:36:45 +0200
commit4b767bd343e6fca0cbef657478ee0633a7ca98d5 (patch)
tree8ae8b02adae871abc7bc2e3debe7f26b1cece538
parent20d82377a679e5207328943ff5d1b3ad253d1feb (diff)
downloadrtems-4b767bd343e6fca0cbef657478ee0633a7ca98d5.tar.bz2
bsps/arm: Use RTEMS_SECTION()
-rw-r--r--bsps/arm/include/bsp/linker-symbols.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/bsps/arm/include/bsp/linker-symbols.h b/bsps/arm/include/bsp/linker-symbols.h
index d743f67f50..ab39b80b28 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)
/** @} */