diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:13:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:13:03 +0000 |
commit | 35290c995bbcff919e7516dd0850e3ffbc720782 (patch) | |
tree | 0c6eef68c4d0ce20b2d345fbb4c5238a1b120d7f | |
parent | 2002-07-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-35290c995bbcff919e7516dd0850e3ffbc720782.tar.bz2 |
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* unlimited/test1.c: Corrected use of _Objects_Information_table
now that it is a two dimensional array based upon API and class.
-rw-r--r-- | c/src/tests/samples/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/tests/samples/unlimited/test1.c | 9 | ||||
-rw-r--r-- | testsuites/samples/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/samples/unlimited/test1.c | 9 |
4 files changed, 22 insertions, 6 deletions
diff --git a/c/src/tests/samples/ChangeLog b/c/src/tests/samples/ChangeLog index ba97805d34..be14077a9c 100644 --- a/c/src/tests/samples/ChangeLog +++ b/c/src/tests/samples/ChangeLog @@ -1,3 +1,8 @@ +2002-07-01 Joel Sherrill <joel@OARcorp.com> + + * unlimited/test1.c: Corrected use of _Objects_Information_table + now that it is a two dimensional array based upon API and class. + 2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * base_sp/apptask.c: Include <stdlib.h>. diff --git a/c/src/tests/samples/unlimited/test1.c b/c/src/tests/samples/unlimited/test1.c index 130d62738f..5b13c301de 100644 --- a/c/src/tests/samples/unlimited/test1.c +++ b/c/src/tests/samples/unlimited/test1.c @@ -27,6 +27,7 @@ void test1() boolean auto_extend; rtems_status_code result; rtems_unsigned32 task_count = 0; + Objects_Information *the_information; char c1 = 'a'; char c2 = 'a'; @@ -40,8 +41,10 @@ void test1() * saves having another test. */ - auto_extend = _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend; - _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = FALSE; + the_information = + _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS]; + auto_extend = the_information->auto_extend; + the_information->auto_extend = FALSE; while (task_count < MAX_TASKS) { @@ -92,7 +95,7 @@ void test1() destory_all_tasks("TEST1"); - _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = auto_extend; + the_information->auto_extend = auto_extend; printf( " TEST1 : completed\n" ); } diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog index ba97805d34..be14077a9c 100644 --- a/testsuites/samples/ChangeLog +++ b/testsuites/samples/ChangeLog @@ -1,3 +1,8 @@ +2002-07-01 Joel Sherrill <joel@OARcorp.com> + + * unlimited/test1.c: Corrected use of _Objects_Information_table + now that it is a two dimensional array based upon API and class. + 2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * base_sp/apptask.c: Include <stdlib.h>. diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c index 130d62738f..5b13c301de 100644 --- a/testsuites/samples/unlimited/test1.c +++ b/testsuites/samples/unlimited/test1.c @@ -27,6 +27,7 @@ void test1() boolean auto_extend; rtems_status_code result; rtems_unsigned32 task_count = 0; + Objects_Information *the_information; char c1 = 'a'; char c2 = 'a'; @@ -40,8 +41,10 @@ void test1() * saves having another test. */ - auto_extend = _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend; - _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = FALSE; + the_information = + _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS]; + auto_extend = the_information->auto_extend; + the_information->auto_extend = FALSE; while (task_count < MAX_TASKS) { @@ -92,7 +95,7 @@ void test1() destory_all_tasks("TEST1"); - _Objects_Information_table[OBJECTS_RTEMS_TASKS]->auto_extend = auto_extend; + the_information->auto_extend = auto_extend; printf( " TEST1 : completed\n" ); } |