[rtems-libbsd commit] Update due to chain API changes

Sebastian Huber sebh at rtems.org
Mon Jan 18 13:52:32 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    9f81109456d0d3a85ee8efed71e074f342ffcde0
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=9f81109456d0d3a85ee8efed71e074f342ffcde0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan 18 12:17:46 2016 +0100

Update due to chain API changes

---

 rtemsbsd/rtems/rtems-bsd-thread.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/rtemsbsd/rtems/rtems-bsd-thread.c b/rtemsbsd/rtems/rtems-bsd-thread.c
index 77057ba..d3d1ac2 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);




More information about the vc mailing list