diff options
Diffstat (limited to 'freebsd/sys/sys/_mutex.h')
-rw-r--r-- | freebsd/sys/sys/_mutex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/_mutex.h b/freebsd/sys/sys/_mutex.h index 9bf2d39f..2f4a674e 100644 --- a/freebsd/sys/sys/_mutex.h +++ b/freebsd/sys/sys/_mutex.h @@ -30,6 +30,9 @@ #ifndef _SYS__MUTEX_H_ #define _SYS__MUTEX_H_ +#ifdef __rtems__ +#include <machine/rtems-bsd-mutex.h> +#endif /* __rtems__ */ /* * Sleep/spin mutex. @@ -38,6 +41,8 @@ struct mtx { struct lock_object lock_object; /* Common lock properties. */ #ifndef __rtems__ volatile uintptr_t mtx_lock; /* Owner and flags. */ +#else /* __rtems__ */ + rtems_bsd_mutex mutex; #endif /* __rtems__ */ }; |