diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-28 15:30:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-28 15:30:29 +0000 |
commit | 7f6a24abdd1793e394e4d5d49de1f4ca0e00297a (patch) | |
tree | fbdb1ec31289dabb5bf41ed769d4b40ca8cf9a9a /c/src/lib/libc | |
parent | Moved _Thread_Information -> _RTEMS_tasks_Information. (diff) | |
download | rtems-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 'c/src/lib/libc')
-rw-r--r-- | c/src/lib/libc/libio.c | 21 | ||||
-rw-r--r-- | c/src/lib/libc/support.c | 4 |
2 files changed, 16 insertions, 9 deletions
diff --git a/c/src/lib/libc/libio.c b/c/src/lib/libc/libio.c index ce41643a09..f2046501ce 100644 --- a/c/src/lib/libc/libio.c +++ b/c/src/lib/libc/libio.c @@ -111,10 +111,13 @@ rtems_libio_init(void) rtems_libio_last_iop = rtems_libio_iops + (rtems_libio_number_iops - 1); } - rc = rtems_semaphore_create(RTEMS_LIBIO_SEM, - 1, - RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, - &rtems_libio_semaphore); + rc = rtems_semaphore_create( + RTEMS_LIBIO_SEM, + 1, + RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, + RTEMS_NO_PRIORITY, + &rtems_libio_semaphore + ); if (rc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(rc); } @@ -199,9 +202,13 @@ rtems_libio_allocate(void) * Got one; create a semaphore for it */ - rc = rtems_semaphore_create(RTEMS_LIBIO_IOP_SEM(iop - rtems_libio_iops), - 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, - &iop->sem); + rc = rtems_semaphore_create( + RTEMS_LIBIO_IOP_SEM(iop - rtems_libio_iops), + 1, + RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, + RTEMS_NO_PRIORITY, + &iop->sem + ); if (rc != RTEMS_SUCCESSFUL) goto failed; diff --git a/c/src/lib/libc/support.c b/c/src/lib/libc/support.c index ac7b06963d..c4e207df0a 100644 --- a/c/src/lib/libc/support.c +++ b/c/src/lib/libc/support.c @@ -22,7 +22,7 @@ void MY_task_set_note( unsigned32 note ) { - the_thread->Notepads[ notepad ] = note; + the_thread->RTEMS_API->Notepads[ notepad ] = note; } @@ -31,7 +31,7 @@ unsigned32 MY_task_get_note( unsigned32 notepad ) { - return the_thread->Notepads[ notepad ]; + return the_thread->RTEMS_API->Notepads[ notepad ]; } void *MY_CPU_Context_FP_start( |