diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-18 12:17:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-18 12:18:30 +0100 |
commit | 9f81109456d0d3a85ee8efed71e074f342ffcde0 (patch) | |
tree | b0930c8738f2bf8bc3c9158d4bb02a6fb1c71b7c | |
parent | Use Newlib provided <sys/select.h> (diff) | |
download | rtems-libbsd-9f81109456d0d3a85ee8efed71e074f342ffcde0.tar.bz2 |
Update due to chain API changes
-rw-r--r-- | rtemsbsd/rtems/rtems-bsd-thread.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-thread.c b/rtemsbsd/rtems/rtems-bsd-thread.c index 77057ba7..d3d1ac22 100644 --- a/rtemsbsd/rtems/rtems-bsd-thread.c +++ b/rtemsbsd/rtems/rtems-bsd-thread.c @@ -219,8 +219,9 @@ rtems_bsd_threads_init_late(void *arg) Thread_Control *thread = (Thread_Control *) node; rtems_status_code sc; - sc = rtems_task_start(thread->Object.id, (rtems_task_entry) - thread->Start.entry_point, thread->Start.numeric_argument); + sc = rtems_task_start(thread->Object.id, + thread->Start.Entry.Kinds.Numeric.entry, + thread->Start.Entry.Kinds.Numeric.argument); BSD_ASSERT(sc == RTEMS_SUCCESSFUL); } @@ -271,9 +272,10 @@ rtems_bsd_thread_start(struct thread **td_ptr, void (*func)(void *), void *arg, (rtems_task_argument) arg); BSD_ASSERT(sc == RTEMS_SUCCESSFUL); } else { - thread->Start.entry_point = (Thread_Entry) func; - thread->Start.numeric_argument = - (Thread_Entry_numeric_type) arg; + thread->Start.Entry.Kinds.Numeric.entry = + (void (*)(Thread_Entry_numeric_type))func; + thread->Start.Entry.Kinds.Numeric.argument = + (Thread_Entry_numeric_type)arg; _Chain_Append_unprotected( &rtems_bsd_thread_delay_start_chain, &thread->Object.Node); |