summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-13 11:33:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-17 08:56:27 +0200
commitaaa6653b726dcaa8916514c18a576079e62fe5d1 (patch)
tree157a1c15c0f769db70c3f6aa9091663f0a6dab4d
parentscore: Fix PER_CPU_DATA_GET_BY_OFFSET() (diff)
downloadrtems-aaa6653b726dcaa8916514c18a576079e62fe5d1.tar.bz2
score: Fix PER_CPU_DATA_ITEM_DECLARE()
Fix PER_CPU_DATA_ITEM_DECLARE() for targets with a small-data area. Update #3507.
-rw-r--r--cpukit/include/rtems/score/percpudata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/percpudata.h b/cpukit/include/rtems/score/percpudata.h
index fe29fd9fba..9cb8cf44ae 100644
--- a/cpukit/include/rtems/score/percpudata.h
+++ b/cpukit/include/rtems/score/percpudata.h
@@ -47,7 +47,8 @@ RTEMS_LINKER_RWSET_DECLARE( _Per_CPU_Data, char );
* @param item The designator of the item.
*/
#define PER_CPU_DATA_ITEM_DECLARE( type, item ) \
- RTEMS_LINKER_RWSET_ITEM_DECLARE( _Per_CPU_Data, type, item )
+ RTEMS_LINKER_RWSET_ITEM_DECLARE( _Per_CPU_Data, type, item ) \
+ RTEMS_SECTION( ".rtemsrwset._Per_CPU_Data.content.1" )
/**
* @brief Defines a per-CPU item of the specified type.