summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/splinkersets01/splinkersets01.h
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-01 13:16:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-02 07:47:04 +0200
commit5fe6d07ad5690e3d9c6445ca3a465a700a5a5015 (patch)
tree61843d4323136d7edb385735d68bfaed863ab3c5 /testsuites/sptests/splinkersets01/splinkersets01.h
parentscore: Fix for RTEMS_DEBUG (diff)
downloadrtems-5fe6d07ad5690e3d9c6445ca3a465a700a5a5015.tar.bz2
linker set: Allow adding any variable into content
The newly created macro adds any kind of variable into a linker set. It allows (for example) the saving an execution state of a function using the following method: - put a group of different variables into one linker set - save the memory area containing the group of variables before the execution of a function - restore the memory area after the function has been executed
Diffstat (limited to 'testsuites/sptests/splinkersets01/splinkersets01.h')
-rw-r--r--testsuites/sptests/splinkersets01/splinkersets01.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuites/sptests/splinkersets01/splinkersets01.h b/testsuites/sptests/splinkersets01/splinkersets01.h
index 5da8ec6613..03391542df 100644
--- a/testsuites/sptests/splinkersets01/splinkersets01.h
+++ b/testsuites/sptests/splinkersets01/splinkersets01.h
@@ -29,10 +29,22 @@ RTEMS_LINKER_RWSET_DECLARE(test_rw, const int *);
RTEMS_LINKER_ROSET_DECLARE(test_ro, const int *);
+RTEMS_LINKER_RWSET_DECLARE(test_content_rw, char);
+
+RTEMS_LINKER_ROSET_DECLARE(test_content_ro, char);
+
RTEMS_LINKER_RWSET_ITEM_DECLARE(test_rw, const int *, a1);
RTEMS_LINKER_ROSET_ITEM_DECLARE(test_ro, const int *, ca2);
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1);
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2);
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_3);
+
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const int content_ro_1);
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_2);
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_3);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */