From aaa6653b726dcaa8916514c18a576079e62fe5d1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 13 Sep 2018 11:33:11 +0200 Subject: score: Fix PER_CPU_DATA_ITEM_DECLARE() Fix PER_CPU_DATA_ITEM_DECLARE() for targets with a small-data area. Update #3507. --- cpukit/include/rtems/score/percpudata.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3