[rtems commit] score: Fix PER_CPU_DATA_ITEM_DECLARE()
Sebastian Huber
sebh at rtems.org
Mon Sep 17 06:58:38 UTC 2018
Module: rtems
Branch: master
Commit: aaa6653b726dcaa8916514c18a576079e62fe5d1
Changeset: http://git.rtems.org/rtems/commit/?id=aaa6653b726dcaa8916514c18a576079e62fe5d1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 13 11:33:11 2018 +0200
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 fe29fd9..9cb8cf4 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.
More information about the vc
mailing list