summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorAun-Ali Zaidi <admin@kodeit.net>2015-12-23 14:44:02 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-12-24 16:52:34 -0600
commitd5154d0f6a04f3b7ed59d9a09038576fe2640756 (patch)
tree4b6dcf6e9b116223903afbc1b1141d28fb751848 /testsuites/libtests
parentscore: Fix watchdog removal (diff)
downloadrtems-d5154d0f6a04f3b7ed59d9a09038576fe2640756.tar.bz2
api: Remove deprecated Notepads
Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/rtems++/System.h1
-rw-r--r--testsuites/libtests/rtems++/Task1.cc69
-rw-r--r--testsuites/libtests/rtems++/rtems++.scn15
3 files changed, 0 insertions, 85 deletions
diff --git a/testsuites/libtests/rtems++/System.h b/testsuites/libtests/rtems++/System.h
index 410fccbad8..e787fe21be 100644
--- a/testsuites/libtests/rtems++/System.h
+++ b/testsuites/libtests/rtems++/System.h
@@ -123,7 +123,6 @@ class Io_during_interrupt
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0
#define CONFIGURE_TICKS_PER_TIMESLICE 100
-#define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
diff --git a/testsuites/libtests/rtems++/Task1.cc b/testsuites/libtests/rtems++/Task1.cc
index c4ce8c4d4b..02c1746e0c 100644
--- a/testsuites/libtests/rtems++/Task1.cc
+++ b/testsuites/libtests/rtems++/Task1.cc
@@ -259,75 +259,6 @@ void Task1::screen2(void)
task_2.set_priority(current_priority, priority);
printf("%s, priority was %" PRIirtems_task_priority "\n", task_2.last_status_string(), priority);
- uint32_t current_note;
- uint32_t note;
-
- // notepad registers for this object
-
- printf("%s - get note - ", name_string());
- get_note(0, current_note);
- printf("%s, note is %" PRIi32 "\n", last_status_string(), current_note);
-
- printf("%s - get with bad notepad number - ", name_string());
- get_note(100, current_note);
- printf("%s, note is %" PRIi32 "\n", last_status_string(), current_note);
-
- printf("%s - set note to 0xDEADBEEF - ", name_string());
- set_note(0, 0xDEADBEEF);
- printf("%s\n", last_status_string());
-
- printf("%s - get note - ", name_string());
- get_note(0, note);
- printf("%s, note is 0x%08" PRIX32 "\n", last_status_string(), note);
-
- printf("%s - set note to original value - ", name_string());
- set_note(0, current_note);
- printf("%s\n", last_status_string());
-
- // notepad registers for connected object
-
- printf("%s - connected object get note - ", task_1.name_string());
- task_1.get_note(0, current_note);
- printf("%s, notepad is %" PRIi32 "\n", task_1.last_status_string(), current_note);
-
- printf("%s - connected object get with bad notepad number - ", task_1.name_string());
- task_1.get_note(100, current_note);
- printf("%s, note is %" PRIi32 "\n", task_1.last_status_string(), current_note);
-
- printf("%s - connected object set note to 0xDEADBEEF - ", task_1.name_string());
- task_1.set_note(0, 0xDEADBEEF);
- printf("%s\n", task_1.last_status_string());
-
- printf("%s - connected object get note - ", task_1.name_string());
- task_1.get_note(0, note);
- printf("%s, note is 0x%08" PRIX32 "\n", task_1.last_status_string(), note);
-
- printf("%s - connected object set note to original value - ", task_1.name_string());
- task_1.set_note(0, current_note);
- printf("%s\n", task_1.last_status_string());
-
- // notepad registers for self object
-
- printf("%s - self object get note - ", task_2.name_string());
- task_2.get_note(0, current_note);
- printf("%s, note is %" PRIi32 "\n", task_2.last_status_string(), current_note);
-
- printf("%s - self object get with bad notepad number - ", task_2.name_string());
- task_2.get_note(100, current_note);
- printf("%s, note is %" PRIi32 "\n", task_2.last_status_string(), current_note);
-
- printf("%s - self object set note to 0xDEADBEEF - ", task_2.name_string());
- task_2.set_note(0, 0xDEADBEEF);
- printf("%s\n", task_2.last_status_string());
-
- printf("%s - self object get note - ", task_2.name_string());
- task_2.get_note(0, note);
- printf("%s, notepad is 0x%08" PRIX32 "\n", task_2.last_status_string(), note);
-
- printf("%s - self object set note to original value - ", task_2.name_string());
- task_2.set_note(0, current_note);
- printf("%s\n", task_2.last_status_string());
-
printf(" END Task Class test\n");
}
diff --git a/testsuites/libtests/rtems++/rtems++.scn b/testsuites/libtests/rtems++/rtems++.scn
index f87d0e2906..0ac7c9c172 100644
--- a/testsuites/libtests/rtems++/rtems++.scn
+++ b/testsuites/libtests/rtems++/rtems++.scn
@@ -44,21 +44,6 @@ SELF - self object get priority - RTEMS[00] successful completion, priority is 1
SELF - self object set priority to 512 - RTEMS[19] invalid thread priority
SELF - self object set priority to 25 - RTEMS[00] successful completion
SELF - self object set priority to original - RTEMS[00] successful completion, priority was 25
-TA1 - get note - RTEMS[00] successful completion, note is 0
-TA1 - get with bad notepad number - RTEMS[10] number was invalid, note is 0
-TA1 - set note to 0xDEADBEEF - RTEMS[00] successful completion
-TA1 - get note - RTEMS[00] successful completion, note is 0xDEADBEEF
-TA1 - set note to original value - RTEMS[00] successful completion
-TA1 - connected object get note - RTEMS[00] successful completion, notepad is 0
-TA1 - connected object get with bad notepad number - RTEMS[10] number was invalid, note is 0
-TA1 - connected object set note to 0xDEADBEEF - RTEMS[00] successful completion
-TA1 - connected object get note - RTEMS[00] successful completion, note is 0xDEADBEEF
-TA1 - connected object set note to original value - RTEMS[00] successful completion
-SELF - self object get note - RTEMS[00] successful completion, note is 0
-SELF - self object get with bad notepad number - RTEMS[10] number was invalid, note is 0
-SELF - self object set note to 0xDEADBEEF - RTEMS[00] successful completion
-SELF - self object get note - RTEMS[00] successful completion, notepad is 0xDEADBEEF
-SELF - self object set note to original value - RTEMS[00] successful completion
END Task Class test
<pause - screen 3>
START TaskMode Class test