From 473437ccd716864711b900c36f46fcb4b26a605e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Sep 2013 15:01:27 +0200 Subject: Update due to header file changes --- rtemsbsd/src/rtems-bsd-condvar.c | 15 +++++++-------- rtemsbsd/src/rtems-bsd-mutex.c | 11 ++++++----- rtemsbsd/src/rtems-bsd-rwlock.c | 6 +++--- rtemsbsd/src/rtems-bsd-support.c | 10 ++++------ rtemsbsd/src/rtems-bsd-sx.c | 11 ++++++----- rtemsbsd/src/rtems-bsd-synch.c | 13 ++++++------- 6 files changed, 32 insertions(+), 34 deletions(-) diff --git a/rtemsbsd/src/rtems-bsd-condvar.c b/rtemsbsd/src/rtems-bsd-condvar.c index 63f30007..cb97174d 100644 --- a/rtemsbsd/src/rtems-bsd-condvar.c +++ b/rtemsbsd/src/rtems-bsd-condvar.c @@ -7,10 +7,9 @@ */ /* - * Copyright (c) 2009, 2010 embedded brains GmbH. - * All rights reserved. + * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * - * embedded brains GmbH + * Dornierstr. 4 * Obere Lagerstr. 30 * 82178 Puchheim * Germany @@ -38,12 +37,12 @@ * SUCH DAMAGE. */ -/* Necessary to obtain some internal functions */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ - #include -#include +#include +#include +#include +#include #include #include @@ -109,7 +108,7 @@ static int _cv_wait_support(struct cv *cv, struct lock_object *lock, int timo, b _Thread_Executing->Wait.id = cv->cv_id; /* FIXME: Integer conversion */ - _Thread_queue_Enqueue(&pcv->Wait_queue, (Watchdog_Interval) timo); + _Thread_queue_Enqueue(&pcv->Wait_queue, _Thread_Executing, (Watchdog_Interval) timo); DROP_GIANT(); diff --git a/rtemsbsd/src/rtems-bsd-mutex.c b/rtemsbsd/src/rtems-bsd-mutex.c index 0468c13c..23249148 100644 --- a/rtemsbsd/src/rtems-bsd-mutex.c +++ b/rtemsbsd/src/rtems-bsd-mutex.c @@ -7,10 +7,10 @@ */ /* - * Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved. + * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded brains GmbH - * Obere Lagerstr. 30 + * Dornierstr. 4 * 82178 Puchheim * Germany * @@ -37,11 +37,12 @@ * SUCH DAMAGE. */ -/* Necessary to obtain some internal functions */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ - #include +#include +#include +#include + #include #include #include diff --git a/rtemsbsd/src/rtems-bsd-rwlock.c b/rtemsbsd/src/rtems-bsd-rwlock.c index 21c61dae..a38a9a14 100644 --- a/rtemsbsd/src/rtems-bsd-rwlock.c +++ b/rtemsbsd/src/rtems-bsd-rwlock.c @@ -37,13 +37,13 @@ * SUCH DAMAGE. */ -/* Necessary to obtain some internal functions */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ #include -#include #include +#include +#include + #include #include #include diff --git a/rtemsbsd/src/rtems-bsd-support.c b/rtemsbsd/src/rtems-bsd-support.c index 4a61b179..8c0ccac7 100644 --- a/rtemsbsd/src/rtems-bsd-support.c +++ b/rtemsbsd/src/rtems-bsd-support.c @@ -37,14 +37,12 @@ * SUCH DAMAGE. */ -/* - * This violation is specifically for _Thread_Disable_dispatch - * and _Thread_Enable_dispatch. Use of the critical_enter() - * and critical_exit() routines should be reviewed. - */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +/* FIXME: This file needs careful review. */ + #include +#include + #include #include #include diff --git a/rtemsbsd/src/rtems-bsd-sx.c b/rtemsbsd/src/rtems-bsd-sx.c index 3634d85e..73df4f6f 100644 --- a/rtemsbsd/src/rtems-bsd-sx.c +++ b/rtemsbsd/src/rtems-bsd-sx.c @@ -7,10 +7,10 @@ */ /* - * Copyright (c) 2009, 2010 embedded brains GmbH. All rights reserved. + * Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved. * * embedded brains GmbH - * Obere Lagerstr. 30 + * Dornierstr. 4 * 82178 Puchheim * Germany * @@ -37,11 +37,12 @@ * SUCH DAMAGE. */ -/* Necessary to obtain some internal functions */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ - #include +#include +#include +#include + #include #include #include diff --git a/rtemsbsd/src/rtems-bsd-synch.c b/rtemsbsd/src/rtems-bsd-synch.c index 110fe666..40e08e1c 100644 --- a/rtemsbsd/src/rtems-bsd-synch.c +++ b/rtemsbsd/src/rtems-bsd-synch.c @@ -38,16 +38,15 @@ */ /* - * This violation is specifically for _Thread_Disable_dispatch - * and _Thread_Enable_dispatch. Use of the critical_enter() - * and critical_exit() routines should be reviewed. + * FIXME: This seems to be a completely broken implementation. */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ #include -#include + +#include +#include #include -#include +#include #include #include @@ -169,7 +168,7 @@ sleep_queue_timedwait(void *wchan, int pri, int timeout, int catch) executing->Wait.queue = &sq->queue; _ISR_Enable( level ); - _Thread_queue_Enqueue( &sq->queue, timeout ); + _Thread_queue_Enqueue( &sq->queue, executing, timeout ); _Thread_Enable_dispatch(); return _Thread_Executing->Wait.return_code; } -- cgit v1.2.3