summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-mutex.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-17 20:49:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-06 14:58:13 +0100
commit8ed1b181aafcb1e96c25ed5a96293eed79044db7 (patch)
treea9579d5f07c1866b8bd3e908bf68748a6b71f520 /rtemsbsd/include/machine/rtems-bsd-mutex.h
parentatomic.h: Use <stdatomic.h> or <atomic> for SMP (diff)
downloadrtems-libbsd-8ed1b181aafcb1e96c25ed5a96293eed79044db7.tar.bz2
rtems_bsd_mutex: SMP support via ISR locks
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-mutex.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-mutex.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-mutex.h b/rtemsbsd/include/machine/rtems-bsd-mutex.h
index 58b16f2c..d1879ce9 100644
--- a/rtemsbsd/include/machine/rtems-bsd-mutex.h
+++ b/rtemsbsd/include/machine/rtems-bsd-mutex.h
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2014, 2015 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -40,6 +40,7 @@
#ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_MUTEX_H_
#define _RTEMS_BSD_MACHINE_RTEMS_BSD_MUTEX_H_
+#include <rtems/score/isrlock.h>
#include <rtems/score/rbtree.h>
#include <rtems/score/thread.h>
@@ -48,6 +49,7 @@ extern "C" {
#endif /* __cplusplus */
typedef struct {
+ ISR_LOCK_MEMBER(lock)
Thread_Control *owner;
int nest_level;
RBTree_Control rivals;