From 35290c995bbcff919e7516dd0850e3ffbc720782 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 1 Jul 2002 22:13:03 +0000 Subject: 2002-07-01 Joel Sherrill * unlimited/test1.c: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class. --- testsuites/samples/ChangeLog | 5 +++++ testsuites/samples/unlimited/test1.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'testsuites/samples') 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 + + * 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 * base_sp/apptask.c: Include . 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" ); } -- cgit v1.2.3