From 7f6a24abdd1793e394e4d5d49de1f4ca0e00297a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 Aug 1995 15:30:29 +0000 Subject: 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. --- cpukit/libmisc/monitor/mon-task.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/libmisc/monitor') diff --git a/cpukit/libmisc/monitor/mon-task.c b/cpukit/libmisc/monitor/mon-task.c index 4e5b80aed6..1f4dee7dee 100644 --- a/cpukit/libmisc/monitor/mon-task.c +++ b/cpukit/libmisc/monitor/mon-task.c @@ -21,16 +21,16 @@ rtems_monitor_task_canonical( Thread_Control *rtems_thread = (Thread_Control *) thread_void; canonical_task->entry = rtems_thread->Start.entry_point; - canonical_task->argument = rtems_thread->Start.initial_argument; + canonical_task->argument = rtems_thread->Start.numeric_argument; canonical_task->stack = rtems_thread->Start.Initial_stack.area; canonical_task->stack_size = rtems_thread->Start.Initial_stack.size; canonical_task->priority = rtems_thread->current_priority; canonical_task->state = rtems_thread->current_state; canonical_task->wait_id = rtems_thread->Wait.id; - canonical_task->events = rtems_thread->pending_events; + canonical_task->events = rtems_thread->RTEMS_API->pending_events; canonical_task->modes = rtems_thread->current_modes; - canonical_task->attributes = rtems_thread->attribute_set; - (void) memcpy(canonical_task->notepad, rtems_thread->Notepads, sizeof(canonical_task->notepad)); + canonical_task->attributes = 0 /* XXX FIX ME rtems_thread->RTEMS_API->attribute_set */; + (void) memcpy(canonical_task->notepad, rtems_thread->RTEMS_API->Notepads, sizeof(canonical_task->notepad)); (void) memcpy(&canonical_task->wait_args, &rtems_thread->Wait.Extra, sizeof(canonical_task->wait_args)); } -- cgit v1.2.3