summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-28 15:30:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-28 15:30:29 +0000
commit7f6a24abdd1793e394e4d5d49de1f4ca0e00297a (patch)
treefbdb1ec31289dabb5bf41ed769d4b40ca8cf9a9a /testsuites
parentMoved _Thread_Information -> _RTEMS_tasks_Information. (diff)
downloadrtems-7f6a24abdd1793e394e4d5d49de1f4ca0e00297a.tar.bz2
Added unused priority ceiling parameter to rtems_semaphore_create.
Rearranged code to created thread handler routines to initialize, start, restart, and "close/delete" a thread. Made internal threads their own object class. This now uses the thread support routines for starting and initializing a thread. Insured deleted tasks are freed to the Inactive pool associated with the correct Information block. Added an RTEMS API specific data area to the thread control block. Beginnings of removing the word "rtems" from the core.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/mptests/mp08/init.c1
-rw-r--r--testsuites/mptests/mp10/init.c1
-rw-r--r--testsuites/mptests/mp11/init.c1
-rw-r--r--testsuites/mptests/mp13/init.c1
-rw-r--r--testsuites/mptests/mp14/init.c1
-rw-r--r--testsuites/sptests/sp09/screen05.c18
-rw-r--r--testsuites/sptests/sp12/init.c14
-rw-r--r--testsuites/tmtests/tm01/task1.c2
-rw-r--r--testsuites/tmtests/tm02/task1.c1
-rw-r--r--testsuites/tmtests/tm03/task1.c1
-rw-r--r--testsuites/tmtests/tm04/task1.c1
-rw-r--r--testsuites/tmtests/tm21/task1.c1
-rw-r--r--testsuites/tmtests/tm25/task1.c1
-rw-r--r--testsuites/tmtests/tm26/task1.c1
-rw-r--r--testsuites/tmtests/tmoverhd/dumrtems.h4
-rw-r--r--testsuites/tmtests/tmoverhd/testtask.c1
16 files changed, 42 insertions, 8 deletions
diff --git a/testsuites/mptests/mp08/init.c b/testsuites/mptests/mp08/init.c
index 2a669d2b9a..6f43d6635d 100644
--- a/testsuites/mptests/mp08/init.c
+++ b/testsuites/mptests/mp08/init.c
@@ -50,6 +50,7 @@ rtems_task Init(
Semaphore_name[ 1 ],
1,
RTEMS_GLOBAL,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/mptests/mp10/init.c b/testsuites/mptests/mp10/init.c
index c5fe62e099..4d150be3da 100644
--- a/testsuites/mptests/mp10/init.c
+++ b/testsuites/mptests/mp10/init.c
@@ -69,6 +69,7 @@ rtems_task Init(
Semaphore_name[ 1 ],
0,
RTEMS_GLOBAL | RTEMS_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/mptests/mp11/init.c b/testsuites/mptests/mp11/init.c
index c2837a7fc2..a560b35159 100644
--- a/testsuites/mptests/mp11/init.c
+++ b/testsuites/mptests/mp11/init.c
@@ -85,6 +85,7 @@ rtems_task Init(
Semaphore_name[ 1 ],
1,
RTEMS_GLOBAL,
+ RTEMS_NO_PRIORITY,
&junk_id
);
fatal_directive_status( status, RTEMS_TOO_MANY, "rtems_semaphore_create" );
diff --git a/testsuites/mptests/mp13/init.c b/testsuites/mptests/mp13/init.c
index eb2de9733c..cff264e506 100644
--- a/testsuites/mptests/mp13/init.c
+++ b/testsuites/mptests/mp13/init.c
@@ -62,6 +62,7 @@ rtems_task Init(
Semaphore_name[ 1 ],
1,
RTEMS_GLOBAL | RTEMS_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/mptests/mp14/init.c b/testsuites/mptests/mp14/init.c
index 99891d50ba..bc35d86469 100644
--- a/testsuites/mptests/mp14/init.c
+++ b/testsuites/mptests/mp14/init.c
@@ -94,6 +94,7 @@ rtems_task Init(
Semaphore_name[ 1 ],
1,
RTEMS_GLOBAL,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/sptests/sp09/screen05.c b/testsuites/sptests/sp09/screen05.c
index 2ba984aba2..c47a25f89d 100644
--- a/testsuites/sptests/sp09/screen05.c
+++ b/testsuites/sptests/sp09/screen05.c
@@ -23,7 +23,13 @@ void Screen5()
{
rtems_status_code status;
- status = rtems_semaphore_create( 0, 1, RTEMS_DEFAULT_ATTRIBUTES, &Junk_id );
+ status = rtems_semaphore_create(
+ 0,
+ 1,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
+ &Junk_id
+ );
fatal_directive_status(
status,
RTEMS_INVALID_NAME,
@@ -35,6 +41,7 @@ void Screen5()
Semaphore_name[ 1 ],
1,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create" );
@@ -44,6 +51,7 @@ void Screen5()
Semaphore_name[ 2 ],
1,
RTEMS_BINARY_SEMAPHORE,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 2 ]
);
directive_failed( status, "rtems_semaphore_create" );
@@ -54,7 +62,9 @@ void Screen5()
Semaphore_name[ 3 ],
1,
RTEMS_DEFAULT_ATTRIBUTES,
- &Junk_id);
+ RTEMS_NO_PRIORITY,
+ &Junk_id
+ );
} while (status == RTEMS_SUCCESSFUL);
fatal_directive_status(
@@ -68,6 +78,7 @@ void Screen5()
Semaphore_name[ 1 ],
1,
RTEMS_INHERIT_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
+ RTEMS_NO_PRIORITY,
&Junk_id
);
fatal_directive_status(
@@ -81,6 +92,7 @@ void Screen5()
Semaphore_name[ 1 ],
1,
RTEMS_INHERIT_PRIORITY | RTEMS_COUNTING_SEMAPHORE | RTEMS_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Junk_id
);
fatal_directive_status(
@@ -94,6 +106,7 @@ void Screen5()
Semaphore_name[ 1 ],
2,
RTEMS_BINARY_SEMAPHORE,
+ RTEMS_NO_PRIORITY,
&Junk_id
);
fatal_directive_status(
@@ -107,6 +120,7 @@ void Screen5()
Semaphore_name[ 3 ],
1,
RTEMS_GLOBAL,
+ RTEMS_NO_PRIORITY,
&Junk_id
);
fatal_directive_status(
diff --git a/testsuites/sptests/sp12/init.c b/testsuites/sptests/sp12/init.c
index dd702ca75e..3bbd0ef1c6 100644
--- a/testsuites/sptests/sp12/init.c
+++ b/testsuites/sptests/sp12/init.c
@@ -53,10 +53,11 @@ rtems_task Init(
Semaphore_name[ 3 ] = rtems_build_name( 'S', 'M', '3', ' ' );
status = rtems_semaphore_create(
- Semaphore_name[ 1 ],
- 1,
- RTEMS_DEFAULT_ATTRIBUTES,
- &Semaphore_id[ 1 ]
+ Semaphore_name[ 1 ],
+ 1,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
+ &Semaphore_id[ 1 ]
);
directive_failed( status, "rtems_semaphore_create of SM1" );
@@ -64,6 +65,7 @@ rtems_task Init(
Semaphore_name[ 2 ],
0,
RTEMS_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 2 ]
);
directive_failed( status, "rtems_semaphore_create of SM2" );
@@ -72,6 +74,7 @@ rtems_task Init(
Semaphore_name[ 3 ],
1,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 3 ]
);
directive_failed( status, "rtems_semaphore_create of SM3" );
@@ -94,6 +97,7 @@ pause();
Semaphore_name[ 2 ],
0,
RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 2 ]
);
directive_failed( status, "rtems_semaphore_create of priority inherit SM2" );
@@ -110,6 +114,7 @@ pause();
Semaphore_name[ 2 ],
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 2 ]
);
directive_failed( status, "rtems_semaphore_create of priority inherit SM2" );
@@ -125,6 +130,7 @@ pause();
Semaphore_name[ 2 ],
0,
RTEMS_PRIORITY,
+ RTEMS_NO_PRIORITY,
&Semaphore_id[ 2 ]
);
directive_failed( status, "rtems_semaphore_create of priority SM2" );
diff --git a/testsuites/tmtests/tm01/task1.c b/testsuites/tmtests/tm01/task1.c
index 2463722320..c4e4e4bc0d 100644
--- a/testsuites/tmtests/tm01/task1.c
+++ b/testsuites/tmtests/tm01/task1.c
@@ -82,6 +82,7 @@ rtems_task Test_task(
name,
OPERATION_COUNT,
RTEMS_DEFAULT_MODES,
+ RTEMS_NO_PRIORITY,
&smid
);
end_time = Read_timer();
@@ -110,6 +111,7 @@ rtems_task Test_task(
name,
OPERATION_COUNT,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&smid
);
diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c
index e86ed6af65..46f947b405 100644
--- a/testsuites/tmtests/tm02/task1.c
+++ b/testsuites/tmtests/tm02/task1.c
@@ -107,6 +107,7 @@ void test_init()
rtems_build_name( 'S', 'M', '1', ' '),
0,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id
);
directive_failed( status, "rtems_semaphore_create of SM1" );
diff --git a/testsuites/tmtests/tm03/task1.c b/testsuites/tmtests/tm03/task1.c
index 0ee82005d7..5c14f5b6e4 100644
--- a/testsuites/tmtests/tm03/task1.c
+++ b/testsuites/tmtests/tm03/task1.c
@@ -71,6 +71,7 @@ rtems_task test_init(
rtems_build_name( 'S', 'M', '1', '\0'),
0,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id
);
directive_failed( status, "rtems_semaphore_create of SM1" );
diff --git a/testsuites/tmtests/tm04/task1.c b/testsuites/tmtests/tm04/task1.c
index 0014d02dd3..371f250282 100644
--- a/testsuites/tmtests/tm04/task1.c
+++ b/testsuites/tmtests/tm04/task1.c
@@ -77,6 +77,7 @@ void test_init()
rtems_build_name( 'S', 'M', '1', ' ' ),
0,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id
);
directive_failed( status, "rtems_semaphore_create of SM1" );
diff --git a/testsuites/tmtests/tm21/task1.c b/testsuites/tmtests/tm21/task1.c
index 9b8715aa83..3bd8dc61dc 100644
--- a/testsuites/tmtests/tm21/task1.c
+++ b/testsuites/tmtests/tm21/task1.c
@@ -82,6 +82,7 @@ rtems_task Task_1(
index,
OPERATION_COUNT,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&id
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/tmtests/tm25/task1.c b/testsuites/tmtests/tm25/task1.c
index 1959b668e3..26eaa2a452 100644
--- a/testsuites/tmtests/tm25/task1.c
+++ b/testsuites/tmtests/tm25/task1.c
@@ -41,6 +41,7 @@ rtems_task Init(
rtems_build_name( 'S', 'M', '1', ' ') ,
0,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id
);
directive_failed( status, "rtems_semaphore_create of SM1" );
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index 6442017101..745e2682f1 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -141,6 +141,7 @@ rtems_task Init(
rtems_build_name( 'S', 'E', 'M', '1' ),
OPERATION_COUNT,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&Semaphore_id
);
directive_failed( status, "rtems_semaphore_create" );
diff --git a/testsuites/tmtests/tmoverhd/dumrtems.h b/testsuites/tmtests/tmoverhd/dumrtems.h
index d0492c1014..161ab1c7fa 100644
--- a/testsuites/tmtests/tmoverhd/dumrtems.h
+++ b/testsuites/tmtests/tmoverhd/dumrtems.h
@@ -172,8 +172,8 @@
#define rtems_region_return_segment( rnid, segaddr ) \
Empty_directive( rnid, segaddr )
-#define rtems_semaphore_create( name, count, attr, smid ) \
- Empty_directive( name, count, attr, smid )
+#define rtems_semaphore_create( name, count, attr, priceil, smid ) \
+ Empty_directive( name, count, attr, priceil, smid )
#define rtems_semaphore_delete( smid ) \
Empty_directive( smid )
#define rtems_semaphore_ident( name, node, smid ) \
diff --git a/testsuites/tmtests/tmoverhd/testtask.c b/testsuites/tmtests/tmoverhd/testtask.c
index 0586f39a35..9daa1f0949 100644
--- a/testsuites/tmtests/tmoverhd/testtask.c
+++ b/testsuites/tmtests/tmoverhd/testtask.c
@@ -510,6 +510,7 @@ pause();
name,
128,
RTEMS_DEFAULT_ATTRIBUTES,
+ RTEMS_NO_PRIORITY,
&id
);
end_time = Read_timer();