From 5fe6d07ad5690e3d9c6445ca3a465a700a5a5015 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Mon, 1 Aug 2016 13:16:57 +0200 Subject: 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 --- testsuites/sptests/splinkersets01/sets.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/sptests/splinkersets01/sets.c') diff --git a/testsuites/sptests/splinkersets01/sets.c b/testsuites/sptests/splinkersets01/sets.c index 0cc1993925..1061379952 100644 --- a/testsuites/sptests/splinkersets01/sets.c +++ b/testsuites/sptests/splinkersets01/sets.c @@ -21,3 +21,7 @@ RTEMS_LINKER_RWSET(test_rw, const int *); RTEMS_LINKER_ROSET(test_ro, const int *); + +RTEMS_LINKER_RWSET(test_content_rw, char); + +RTEMS_LINKER_ROSET(test_content_ro, char); -- cgit v1.2.3